]> err.no Git - linux-2.6/commitdiff
[CIFS] Print better error when server returns malformed QueryUnixInfo response
authorSteve French <sfrench@us.ibm.com>
Thu, 20 Sep 2007 15:30:07 +0000 (15:30 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Sep 2007 15:30:07 +0000 (15:30 +0000)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c

index bb30455caabcfcbf065ce3c5dd286845cd96e814..f33c89c36039a316d9fd353ae5ef8c533321fd3f 100644 (file)
@@ -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);