]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: add sync between btrfs scan and mount
authorSage Weil <sage@inktank.com>
Mon, 23 Jul 2012 16:21:09 +0000 (09:21 -0700)
committerSage Weil <sage@inktank.com>
Mon, 23 Jul 2012 16:21:09 +0000 (09:21 -0700)
This appears to fix problems with mount failing for at least one user.

Reported-by: Paul Pettigrew <Paul.Pettigrew@mach.com.au>
Signed-off-by: Sage Weil <sage@inktank.com>
src/mkcephfs.in

index f6a2e9770b6a1527492908d4f1a699372a73c47d..4edb7f1b7c7312cb7c6d049bef17fdd60e0cbdd5 100644 (file)
@@ -339,6 +339,7 @@ if [ -n "$prepareosdfs" ]; then
     modprobe btrfs || true
     mkfs.btrfs $btrfs_devs
     btrfs device scan || btrfsctl -a
+    sync   # seems to fix problems for some people...
     mount -t btrfs $btrfs_opt $first_dev $btrfs_path
     chown $osd_user $btrfs_path
     chmod +w $btrfs_path