From 59b9ab45a01d52e197ab6f76fd71e64910396d57 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 12 Apr 2011 02:47:45 +0000 Subject: temporary workaround for mtab update race thingy Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2690 (race between mtab updates of mount and umount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2690 --- xlators/features/marker/utils/syncdaemon/resource.py | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/marker/utils/syncdaemon') diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index f157b190721..d172462a70f 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -411,6 +411,7 @@ class GLUSTER(AbstractUrl, SlaveLocal, SlaveRemote): raise RuntimeError("command failed: " + " ".join(argv)) logging.debug('auxiliary glusterfs mount in place') os.chdir(d) + time.sleep(0.2) # XXX temporary workaround argv = ['umount', '-l', d] if os.spawnvp(os.P_WAIT, argv[0], argv): raise RuntimeError("command failed: " + " ".join(argv)) -- cgit