summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/brickfind.py
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-03-19 15:39:20 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-03-30 05:35:32 -0700
commit6a3024fe5953f51b51a7b9c2867d59c9e54c6d03 (patch)
tree77d84edb8dbf92b8f73a9bec3315e31e2ae86f0d /tools/glusterfind/src/brickfind.py
parentaff367a601351ff7bfbfc572d6ae0d4ffafae0f0 (diff)
tools/glusterfind: Ignore .trashcan dir during Brick Crawl
BUG: 1203650 Change-Id: Icf81726ad34bd5cfec6d8e06763b02a159e84c2e Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/10010 Reviewed-by: Kotresh HR <khiremat@redhat.com> Reviewed-by: Prashanth Pai <ppai@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
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())