]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: minor fix
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 29 Mar 2011 20:33:37 +0000 (13:33 -0700)
committerSage Weil <sage@newdream.net>
Wed, 30 Mar 2011 23:49:37 +0000 (16:49 -0700)
line 400: && $type == "osd" is not always valid.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/mkcephfs.in

index ebcbb34939571bf5cb41f5f07ddc169b548c5dbd..b19352877104bc793873955937ad68fbed9f81e4 100644 (file)
@@ -396,7 +396,7 @@ if [ $allhosts -eq 1 ]; then
            scp -q $dir/monmap $host:$rdir
        fi
        
-       if [ $mkbtrfs -eq 1 ] && $type = "osd"; then
+       if [ $mkbtrfs -eq 1 ] && [ "$type" = "osd" ]; then
            do_root_cmd "$0 -d $rdir --prepare-osdfs $name"
        fi