diff options
Diffstat (limited to 'libglusterfs/src/syncop-utils.h')
-rw-r--r-- | libglusterfs/src/syncop-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop-utils.h b/libglusterfs/src/syncop-utils.h index 7a9ccacb285..52bcfd99429 100644 --- a/libglusterfs/src/syncop-utils.h +++ b/libglusterfs/src/syncop-utils.h @@ -11,12 +11,19 @@ #ifndef _SYNCOP_UTILS_H #define _SYNCOP_UTILS_H +typedef int (*syncop_dir_scan_fn_t) (xlator_t *subvol, gf_dirent_t *entry, + loc_t *parent, void *data); int syncop_ftw (xlator_t *subvol, loc_t *loc, int pid, void *data, int (*fn) (xlator_t *subvol, gf_dirent_t *entry, loc_t *parent, void *data)); int +syncop_mt_dir_scan (xlator_t *subvol, loc_t *loc, int pid, void *data, + syncop_dir_scan_fn_t fn, dict_t *xdata, uint32_t max_jobs, + uint32_t max_qlen); + +int syncop_dir_scan (xlator_t *subvol, loc_t *loc, int pid, void *data, int (*fn) (xlator_t *subvol, gf_dirent_t *entry, loc_t *parent, void *data)); |