]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
initscript: modprobe btrfs and btrfsctl -a before mount
authorSage Weil <sage@newdream.net>
Thu, 23 Apr 2009 22:12:26 +0000 (15:12 -0700)
committerSage Weil <sage@newdream.net>
Thu, 23 Apr 2009 22:12:26 +0000 (15:12 -0700)
src/init-ceph

index 4b5572b15eba4a362d30457788b51a2a990e2f4d..ef22638686d13f1598a20b2096cc0ca0efcb78cb 100755 (executable)
@@ -171,7 +171,7 @@ for name in $what; do
            if [ $dobtrfs -eq 1 ] && [ -n "$btrfs_devs" ]; then
                get_conf pre_mount "true" "pre mount command"
                [ -n "$pre_mount" ] && do_cmd $pre_mount
-               do_cmd "egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $first_dev $btrfs_path"
+               do_cmd "modprobe btrfs ; btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $first_dev $btrfs_path"
            fi
            get_conf pre_start_eval "" "pre start eval"
            [ -n "$pre_start_eval" ] && $pre_start_eval