diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-04-08 14:48:32 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-04-13 06:32:22 +0000 |
commit | f5220016c6525a6e166b83bcc24a036c5db0498b (patch) | |
tree | ad00b55362de1aeb1a6db5096cf3fded578a3260 /xlators/storage/posix/src/posix.h | |
parent | 1efa50861b2cee68de9c9b751d9fc5eed08f5e5b (diff) |
storage/posix: Introduce xattr-fill on fds
... with some of the code borrowed from http://review.gluster.org/#/c/3904/
Change-Id: I4901ef14d6f843d8d69f102d43d21b60ba298092
BUG: 1207603
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/10180
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 9fdc6ee44db..d53a488ff6e 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -181,7 +181,8 @@ typedef struct { struct iatt *stbuf; loc_t *loc; inode_t *inode; /* for all do_xattrop() key handling */ - int fd; + fd_t *fd; + int fdnum; int flags; int32_t op_errno; } posix_xattr_filler_t; @@ -201,8 +202,8 @@ int posix_istat (xlator_t *this, uuid_t gfid, const char *basename, struct iatt *iatt); int posix_pstat (xlator_t *this, uuid_t gfid, const char *real_path, struct iatt *iatt); -dict_t *posix_lookup_xattr_fill (xlator_t *this, const char *path, - loc_t *loc, dict_t *xattr, struct iatt *buf); +dict_t *posix_xattr_fill (xlator_t *this, const char *path, loc_t *loc, + fd_t *fd, int fdnum, dict_t *xattr, struct iatt *buf); int posix_handle_pair (xlator_t *this, const char *real_path, char *key, data_t *value, int flags); int posix_fhandle_pair (xlator_t *this, int fd, char *key, data_t *value, |