]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: sync before unmounting btrfs devices
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 2 Feb 2012 17:26:45 +0000 (09:26 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 2 Feb 2012 17:26:45 +0000 (09:26 -0800)
There may still be writes in flight, since the osds may not have
shutdown cleanly. This should prevent EBUSY when unmounting.

Fixes: #1997
teuthology/task/ceph.py

index 6acb3ccde520427f90a64f77423fd69bf4a61417..af691768df3626c6cabac425ea3947012d79311c 100644 (file)
@@ -707,9 +707,11 @@ def cluster(ctx, config):
                 log.info('Unmounting %s on %s' % (dir_, remote))
                 remote.run(
                     args=[
-                        "sudo",
-                        "umount",
-                        "-f",
+                        'sync',
+                        run.Raw('&&'),
+                        'sudo',
+                        'umount',
+                        '-f',
                         dir_
                         ]
                     )