diff options
author | Gui Chen <gui.chen@intel.com> | 2013-12-17 22:04:18 -0500 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-12-17 22:28:29 -0500 |
commit | 6097efc60e60054fba30e0dcded36679719cc749 (patch) | |
tree | 49274c836b74dc18107801f356dc0b0178147f00 | |
parent | 18b58ed080cf18a978e9e1cc3def9e4347e30f7b (diff) | |
download | mic-6097efc60e60054fba30e0dcded36679719cc749.tar.gz mic-6097efc60e60054fba30e0dcded36679719cc749.tar.bz2 mic-6097efc60e60054fba30e0dcded36679719cc749.zip |
try to wait mapper device setting up
Change-Id: I512f10e2437b0023db2112854f57e621e26eaf20
Signed-off-by: Gui Chen <gui.chen@intel.com>
-rw-r--r-- | mic/utils/partitionedfs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py index 63416fe..8677c89 100644 --- a/mic/utils/partitionedfs.py +++ b/mic/utils/partitionedfs.py @@ -470,6 +470,9 @@ class PartitionedMount(Mount): raise MountError("Failed to load mapper devices for '%s'" % d['disk'].device) + # FIXME: need a better way to fix the latency + import time + time.sleep(1) d['mapped'] = True def __unmap_partitions(self): |