mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
aea1f7964a
commit
ce6e7fcd43
1 changed files with 4 additions and 1 deletions
|
@ -513,9 +513,12 @@ int cifs_get_inode_info(struct inode **pinode,
|
||||||
cifs_sb->mnt_cifs_flags &
|
cifs_sb->mnt_cifs_flags &
|
||||||
CIFS_MOUNT_MAP_SPECIAL_CHR);
|
CIFS_MOUNT_MAP_SPECIAL_CHR);
|
||||||
if (rc1) {
|
if (rc1) {
|
||||||
/* BB EOPNOSUPP disable SERVER_INUM? */
|
|
||||||
cFYI(1, ("GetSrvInodeNum rc %d", rc1));
|
cFYI(1, ("GetSrvInodeNum rc %d", rc1));
|
||||||
fattr.cf_uniqueid = iunique(sb, ROOT_I);
|
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 {
|
} else {
|
||||||
fattr.cf_uniqueid = iunique(sb, ROOT_I);
|
fattr.cf_uniqueid = iunique(sb, ROOT_I);
|
||||||
|
|
Loading…
Add table
Reference in a new issue