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 --- cli/src/cli-rpc-ops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index b0e00f63b..33b453373 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -1386,7 +1386,9 @@ print_limit_list (char *volname, char *limit_list) unmount: memset (&cmd_str, 0, sizeof (cmd_str)); + #if GF_LINUX_HOST_OS + usleep (200000); snprintf (cmd_str, sizeof (cmd_str), "umount -l %s", mountdir); #else snprintf (cmd_str, sizeof (cmd_str), "umount %s", mountdir); -- cgit