summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/brickfind.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/glusterfind/src/brickfind.py')
-rw-r--r--tools/glusterfind/src/brickfind.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/glusterfind/src/brickfind.py b/tools/glusterfind/src/brickfind.py
index 4aee225d22e..1090f408e28 100644
--- a/tools/glusterfind/src/brickfind.py
+++ b/tools/glusterfind/src/brickfind.py
@@ -55,13 +55,17 @@ def brickfind_crawl(brick, args):
path = path[brick_path_len+1:]
output_write(fout, path, args.output_prefix)
+ ignore_dirs = [os.path.join(brick, dirname)
+ for dirname in
+ conf.get_opt("brick_ignore_dirs").split(",")]
+
if args.full:
find(brick, callback_func=output_callback,
- ignore_dirs=[".glusterfs"])
+ ignore_dirs=ignore_dirs)
else:
find(brick, callback_func=output_callback,
filter_func=mtime_filter,
- ignore_dirs=[".glusterfs"])
+ ignore_dirs=ignore_dirs)
fout.flush()
os.fsync(fout.fileno())