diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-06-27 17:56:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-06-27 17:56:57 +0000 |
| commit | 8e768dc5500649f12b87c8569d0d646fa4e47ed4 (patch) | |
| tree | f2debc9b347bc13928e8c9d80834b5cc872a62b1 | |
| parent | 7caa6e7755a945cd0840e033c974f4b2d1a73770 (diff) | |
| parent | d28104350e0f3db191d0b6b1222f795a6026a842 (diff) | |
| download | nova-8e768dc5500649f12b87c8569d0d646fa4e47ed4.tar.gz nova-8e768dc5500649f12b87c8569d0d646fa4e47ed4.tar.xz nova-8e768dc5500649f12b87c8569d0d646fa4e47ed4.zip | |
Merge "do sync before fusermount to avoid busyness"
| -rw-r--r-- | nova/virt/disk/guestfs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/virt/disk/guestfs.py b/nova/virt/disk/guestfs.py index 20e3eda39..bf7a286e0 100644 --- a/nova/virt/disk/guestfs.py +++ b/nova/virt/disk/guestfs.py @@ -88,6 +88,7 @@ class Mount(mount.Mount): def unmnt_dev(self): if not self.mounted: return + utils.execute('sync') # root users don't need a specific unmnt_dev() # but ordinary users do utils.execute('fusermount', '-u', self.mount_dir, run_as_root=True) |
