diff options
author | Ravishankar N <ravishankar@redhat.com> | 2017-12-25 19:19:53 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-12-29 17:13:25 +0000 |
commit | 9fd17c1c3c44944ea280c4c15bad0d49b298b8a9 (patch) | |
tree | 26620d09b2e7fd55aff5a302d8bd15f547352e2b /xlators/nfs/server/src | |
parent | cc425b0de57d574f6e68b6ef5edfdf99cd8353af (diff) |
posix: Introduce flags for validity of iatt members
v1 of the patch started off as adding new fields to iatt that can be
filled up using statx but the discussions were more around introducing
masks to check the validity of different fields from a RIO perspective.
To that extent, I have dropped the statx call in this version and
introduced a 64 bit mask for existing fields. The masks I have defined
are similar with the statx() flags' masks.
I have *not* changed iatt_to_stat() to use the macros IATT_TYPE_VALID,
IATT_GFID_VALID etc before blindly copying from struct iatt to struct.
Also fixed warnings in xlators because of atime/mtime/ctime seconds
field change from uint32_t to int64_t.
Change-Id: I4ac614f1e8d5c8246fc99d5bc2d2a23e7941512b
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r-- | xlators/nfs/server/src/nfs3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 6428a77442e..93f5124acf4 100644 --- a/xlators/nfs/server/src/nfs3.c +++ b/xlators/nfs/server/src/nfs3.c @@ -2661,14 +2661,14 @@ nfs3svc_create_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if ((cs->stbuf.ia_mtime == buf->ia_mtime) && (cs->stbuf.ia_atime == buf->ia_atime)) { gf_msg_debug (GF_NFS3, 0, - "Create req retransmitted verf %x %x", + "Create req retransmitted verf %ld %ld", cs->stbuf.ia_mtime, cs->stbuf.ia_atime); stat = NFS3_OK; nfs3_fh_build_child_fh (&cs->parent, buf, &cs->fh); } else { gf_msg_debug (GF_NFS3, 0, - "File already exist new_verf %x %x" - "old_verf %x %x", cs->stbuf.ia_mtime, + "File already exist new_verf %ld %ld" + "old_verf %ld %ld", cs->stbuf.ia_mtime, cs->stbuf.ia_atime, buf->ia_mtime, buf->ia_atime); stat = NFS3ERR_EXIST; |