Commit:     38e2aff670b681b6cc267aca307633cbcb48864b
Parent:     f5c1e2ea71603bc2962041fef9dd902cb8626a1d
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 16 05:12:53 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Fri Mar 16 05:12:53 2007 +0000

    [CIFS] Do not negotiate new POSIX_PATH_OPERATIONS_CAP yet
    Samba server now expects that clients which send the new
    POSIX_PATH_OPERATIONS_CAP send all opens with this new
    SMB - and expects that clients that could send the new
    posix open/create but don't as indicating that they really
    want Windows semantics on that handle (which allows Samba
    to support clients which want to support both types of
    behaviors on different handles on the same mount)
    We will put this capability back in the SetFSInfo
    negotiation with servers like Samba when the
    new POSIXCreate (create/open/mkdir) code is finished.
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
 fs/cifs/cifspdu.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 0efdf35..e894545 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -1887,7 +1887,13 @@ typedef struct {
                                                      calls including posix open
                                                      and posix unlink */ 
-#define CIFS_UNIX_CAP_MASK              0x0000003b
+/* Can not set pathnames cap yet until we send new posix create SMB since
+   otherwise server can treat such handles opened with older ntcreatex
+   (by a new client which knows how to send posix path ops)
+   as non-posix handles (can affect write behavior with byte range locks.
+   We can add back in POSIX_PATH_OPS cap when Posix Create/Mkdir finished */
+/* #define CIFS_UNIX_CAP_MASK              0x0000003b */
+#define CIFS_UNIX_CAP_MASK              0x0000001b 
 #define CIFS_UNIX_CAP_MASK              0x00000013
 #endif /* CONFIG_CIFS_POSIX */
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