summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-12 02:47:45 +0000
committerAnand Avati <avati@gluster.com>2011-04-12 21:49:52 -0700
commit59b9ab45a01d52e197ab6f76fd71e64910396d57 (patch)
tree640b5bc733193931331742b22f10c6d85efbf245 /cli
parent1b18a7d64574ca08b937113fcb19b9d851abd43c (diff)
temporary workaround for mtab update race thingy
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2690 (race between mtab updates of mount and umount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2690
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-rpc-ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index b0e00f63b3e..33b453373b6 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);