diff options
author | Gui Chen <gui.chen@intel.com> | 2013-05-17 01:40:23 -0400 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-05-17 01:40:23 -0400 |
commit | b7b83a3459fad05f10fd2ac57ada3a1bc58c46af (patch) | |
tree | c2864793683cf9bab0641bd3930fccb7217877b4 | |
parent | 650a192cff243f1a44025a8aea4e4c307d9972bb (diff) | |
download | mic-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.py | 4 |
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): |