Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce6e7fcd authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: disable serverino if server doesn't support it



A recent regression when dealing with older servers. This bug was
introduced when we made serverino the default...

When the server can't provide inode numbers, disable it for the mount.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent aea1f796
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -513,9 +513,12 @@ int cifs_get_inode_info(struct inode **pinode,
					cifs_sb->mnt_cifs_flags &
						CIFS_MOUNT_MAP_SPECIAL_CHR);
			if (rc1) {
				/* BB EOPNOSUPP disable SERVER_INUM? */
				cFYI(1, ("GetSrvInodeNum rc %d", rc1));
				fattr.cf_uniqueid = iunique(sb, ROOT_I);
				/* disable serverino if call not supported */
				if (rc1 == -EINVAL)
					cifs_sb->mnt_cifs_flags &=
							~CIFS_MOUNT_SERVER_INUM;
			}
		} else {
			fattr.cf_uniqueid = iunique(sb, ROOT_I);