From e404e9b81f18c0a36a5c67ebf041ac0a00ca2eb1 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 7 Aug 2012 12:55:31 +0530 Subject: cluster/dht: Optimize readdirp calls in DHT Bring in option which is supported by posix xlator to filter out directory's entries from being returned. DHT would now request non-first subvols to filter out directory entries. dht xlator-option readdir-optimize will enable this optimization Change-Id: I35224bc81c9657f54f952efac02790276c35ded5 BUG: 838199 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.com/3772 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/gf-dirent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/gf-dirent.h') diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h index 36a5a629c..26cb5a668 100644 --- a/libglusterfs/src/gf-dirent.h +++ b/libglusterfs/src/gf-dirent.h @@ -48,6 +48,7 @@ struct _gf_dirent_t { char d_name[0]; }; +#define DT_ISDIR(mode) (mode == DT_DIR) gf_dirent_t *gf_dirent_for_name (const char *name); void gf_dirent_free (gf_dirent_t *entries); -- cgit