From 2efb36047aa11838b2cde93a3e95741e7ba40bae Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 5 Feb 2015 21:23:37 +0530 Subject: syncop: Provide syncop_ftw and syncop_dir_scan utils ftw provides file tree walk. dir_scan does just a readdir not readdirp. Also changed Afr's self-heal-daemon's crawling functions to use this. These utils will be used by ec in future to do proactive/full healing. Change-Id: I05715ddb789592c1b79a71e98f1e8cc29aac5c26 BUG: 1177601 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9485 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Reviewed-by: Krutika Dhananjay Reviewed-by: Vijay Bellur --- libglusterfs/src/gf-dirent.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/gf-dirent.h') diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h index 588d522dbcf..4c1ff0b1684 100644 --- a/libglusterfs/src/gf-dirent.h +++ b/libglusterfs/src/gf-dirent.h @@ -55,4 +55,6 @@ void gf_dirent_free (gf_dirent_t *entries); int gf_link_inodes_from_dirent (xlator_t *this, inode_t *parent, gf_dirent_t *entries); +void +gf_link_inode_from_dirent (xlator_t *this, inode_t *parent, gf_dirent_t *entry); #endif /* _GF_DIRENT_H */ -- cgit