If it's busy, assume it's already mounted.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 20 Mar 2008 19:13:24 +0000 (19:13 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Thu, 20 Mar 2008 19:13:24 +0000 (19:13 +0000)
python/vserverimpl.c

index 5e28fa2..98125c9 100644 (file)
@@ -612,7 +612,7 @@ vserver_mount(PyObject *self, PyObject *args)
 
   if (secure_chdir(&dirs, guest, target) == -1)
     goto out;
-  if (mount(source, ".", type, flags, data) == -1)
+  if (mount(source, ".", type, flags, data) == -1 && errno != EBUSY)
     goto out;
   restore_dirs(&dirs);