geo-rep: Ignore .trashcan during xsync crawl.

With trash feature, .trashcan directory gets created
at each export directory. Xsync picks .trashcan to sync
and fails with EPERM. Xsync should ignore .trashcan
directory.

Change-Id: I45bd226c96011ace2c40dd2de878d886c7d34ce5
BUG: 1203293
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/9934
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Kotresh HR 2015-03-18 19:50:03 +05:30 committed by Vijay Bellur
parent 87a9d23627
commit 2bf23b5b9b

View File

@ -1234,6 +1234,7 @@ class GLUSTER(AbstractUrl, SlaveLocal, SlaveRemote):
if path == '.':
try:
e.remove('.glusterfs')
e.remove('.trashcan')
except ValueError:
pass
return e