diff options
author | Steve French <sfrench@us.ibm.com> | 2007-09-20 15:30:07 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-09-20 15:30:07 +0000 |
commit | 1e71f25d14d70f2bf607b40ab6d7e18daca57f36 (patch) | |
tree | be75c63dea24cb07dc59ecc75b1c82ff0779a514 /fs/cifs | |
parent | 5a44b3190e3441986648ff664ef045685995324b (diff) | |
download | linux-3.10-1e71f25d14d70f2bf607b40ab6d7e18daca57f36.tar.gz linux-3.10-1e71f25d14d70f2bf607b40ab6d7e18daca57f36.tar.bz2 linux-3.10-1e71f25d14d70f2bf607b40ab6d7e18daca57f36.zip |
[CIFS] Print better error when server returns malformed QueryUnixInfo response
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index bb30455caab..f33c89c3603 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -3361,6 +3361,9 @@ UnixQPathInfoRetry: rc = validate_t2((struct smb_t2_rsp *)pSMBr); if (rc || (pSMBr->ByteCount < sizeof(FILE_UNIX_BASIC_INFO))) { + cERROR(1, ("Malformed FILE_UNIX_BASIC_INFO response.\n" + "Unix Extensions can be disabled on mount " + "by specifying the nosfu mount option.")); rc = -EIO; /* bad smb */ } else { __u16 data_offset = le16_to_cpu(pSMBr->t2.DataOffset); |