/api/

a> : glusterfs-afrv1.git
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2012-05-27 16:52:21 -0700
committerAnand Avati <avati@redhat.com>2012-05-29 23:03:52 -0700
commit1b798491193add9cb296ce6817a6cbc2fdb9db34 (patch)
treea71c4313a0bcbcf83e4fab39cfd563385415253b
parent493ef71222e780cb542c7edc5dfb7d0e3097c55a (diff)
storage/posix: readdirp enhancementsv3.3.0
- avoid multiple calls to posix_istat(). use cheaper posix_pstat() - code re-org Change-Id: I4a2e32626ade49b7d18158952849c6fe7bd6875c BUG: 816140 Reviewed-on: http://review.gluster.com/3488 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat
-rw-r--r--xlators/storage/posix/src/posix.c106
1 files changed, 61 insertions, 45 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index f98056286..62c36d794 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3610,6 +3610,64 @@ posix_entry_xattr_fill (xlator_t *this, inode_t *inode,
}
+
+int
+posix_readdirp_fill (xlator_t *this, fd_t *fd, gf_dirent_t *entries, dict_t *dict)
+{
+ gf_dirent_t *entry = NULL;
+ inode_table_t *itable = NULL;
+ inode_t *inode = NULL;
+ char *hpath = NULL;
+ int len = 0;
+ struct iatt stbuf = {0, };
+ uuid_t gfid;
+
+
+ itable = fd->inode-&