Patchwork [BRANCH:release-3.1,BUG:2553] NFS : Exclusive Create storing verifier.

login
register
Submitter Gaurav
Date 2011-04-08 06:24:20
Message ID <1302243860-16112-1-git-send-email-gaurav@gluster.com>
Download mbox | patch
Permalink /patch/6748/
State Accepted
Delegated to: Shehjar Tikoo
Headers show

Comments

Gaurav - 2011-04-08 06:24:20
From: Gaurav <gaurav@gluster.com>


Signed-off-by: Gaurav <gaurav@gluster.com>
---
 xlators/nfs/server/src/nfs3.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c
index 11b4ede..e43b666 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);