]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
initscript: remove notreelog by default
authorSage Weil <sage@newdream.net>
Wed, 27 May 2009 19:06:38 +0000 (12:06 -0700)
committerSage Weil <sage@newdream.net>
Wed, 27 May 2009 19:06:38 +0000 (12:06 -0700)
This screws us if we put the journal file on the same btrfs volume.  Not
that it works that well anyway, but it works even worse this way.  And
since FileStore never calls fsync(), it's fine.

src/init-ceph

index 25fc9194a68812b0c94d6be177efe47648cf9d42..53948cb122cbd4312716bd9850dafba9e764f9e4 100755 (executable)
@@ -171,7 +171,7 @@ for name in $what; do
            echo Starting ceph $name on $host...
            if [ $dobtrfs -eq 1 ] && [ -n "$btrfs_devs" ]; then
                get_conf pre_mount "true" "pre mount command"
-               get_conf btrfs_opt "notreelog,flushoncommit" "btrfs options"
+               get_conf btrfs_opt "flushoncommit" "btrfs options"
                [ -n "$btrfs_opt" ] && btrfs_opt="-o $btrfs_opt"
                [ -n "$pre_mount" ] && do_cmd $pre_mount
                do_cmd "modprobe btrfs ; btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $btrfs_opt $first_dev $btrfs_path"