From 64cefcee88c6164f20668187929c76ec54a72d23 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Fri, 8 Apr 2011 00:54:33 +0000 Subject: NFS : Exclusive create storing verifier. Signed-off-by: Gaurav Signed-off-by: Vijay Bellur BUG: 2553 (NFS file create with Mac client and UNCHECKED mode returns "Operation not permitted") URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2553 --- xlators/nfs/server/src/nfs3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 11b4ede17c7..e43b666d861 100644 --- a/xlators/nfs/server/src/nfs3.c +++ b/xlators/nfs/server/src/nfs3.c @@ -2437,8 +2437,8 @@ nfs3_create_exclusive (nfs3_call_state_t *cs) /* Storing verifier as a mtime and atime attribute, to store it * in stable storage */ - cs->stbuf.ia_atime = (cs->cookieverf && 0xFFFFFFFF00000000); - cs->stbuf.ia_mtime = (cs->cookieverf && 0x00000000FFFFFFFF); + cs->stbuf.ia_atime = (cs->cookieverf & 0xFFFFFFFF00000000); + cs->stbuf.ia_mtime = (cs->cookieverf & 0x00000000FFFFFFFF); cs->setattr_valid |= GF_SET_ATTR_ATIME; cs->setattr_valid |= GF_SET_ATTR_MTIME; nfs_request_user_init (&nfu, cs->req); -- cgit