Commit:     5a44b3190e3441986648ff664ef045685995324b
Parent:     c45d707f67b82236fcf9ca2af31c264669368b9b
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 20 15:16:24 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Thu Sep 20 15:16:24 2007 +0000

    [CIFS] Add warning message when broken server fails SetFSInfo call
    A reasonably common NAS server returns an error on the SetFSInfo of
    the Unix capabilities. Log a message for this alerting the user
    that the server may have problems with the Unix extensions,
    and telling them what they can do to workaround it.
    Unfortunately the server does not return other clues
    that we could easily use to turn the Unix Extension support
    off automatically in this case (since they claim to support it).
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
 fs/cifs/connect.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 5f2ec19..73ed9fc 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1742,7 +1742,16 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo 
                        cFYI(1, ("very large write cap"));
 #endif /* CIFS_DEBUG2 */
                if (CIFSSMBSetFSUnixInfo(xid, tcon, cap)) {
-                       cFYI(1, ("setting capabilities failed"));
+                       if (vol_info == NULL)
+                               cFYI(1, ("resetting capabilities failed"));
+                       else
+                               cERROR(1, ("Negotiating Unix capabilities "
+                                          "with the server failed.  Consider "
+                                          "mounting with the Unix Extensions\n"
+                                          "disabled, if problems are found, "
+                                          "by specifying the nounix mount "
+                                          "option.");
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to