summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-05-17 01:40:23 -0400
committerGui Chen <gui.chen@intel.com>2013-05-17 01:40:23 -0400
commitb7b83a3459fad05f10fd2ac57ada3a1bc58c46af (patch)
treec2864793683cf9bab0641bd3930fccb7217877b4
parent650a192cff243f1a44025a8aea4e4c307d9972bb (diff)
downloadmic-b7b83a3459fad05f10fd2ac57ada3a1bc58c46af.tar.gz
mic-b7b83a3459fad05f10fd2ac57ada3a1bc58c46af.tar.bz2
mic-b7b83a3459fad05f10fd2ac57ada3a1bc58c46af.zip
try to wait for mapping device mapper
a delay for setup multipath device will throw error: /dev/loop0X: No such file or directory Signed-off-by: Gui Chen <gui.chen@intel.com>
-rw-r--r--mic/utils/partitionedfs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py
index 226e4d9..f1102d4 100644
--- a/mic/utils/partitionedfs.py
+++ b/mic/utils/partitionedfs.py
@@ -448,6 +448,10 @@ class PartitionedMount(Mount):
raise MountError("Failed to map partitions for '%s'" %
d['disk'].device)
+ # FIXME: there is a bit delay for multipath device setup,
+ # wait 10ms for the setup
+ import time
+ time.sleep(10)
d['mapped'] = True
def __unmap_partitions(self):