summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorGaurav <gaurav@gluster.com>2011-04-08 00:54:33 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-08 03:26:54 -0700
commit64cefcee88c6164f20668187929c76ec54a72d23 (patch)
tree78bd4ea9cb2cc4f2faa10c4870c6ac7d6ab61090 /xlators/nfs
parentd6a7e92da11663cdb6068466f22e230ceb0dc31d (diff)
NFS : Exclusive create storing verifier.
Signed-off-by: Gaurav <gaurav@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> 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
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/nfs3.c4
1 files 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);