]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix the match error when starting OSD daemons. 2818/head
authorhuangjun <hjwsm1989@gmail.com>
Tue, 28 Oct 2014 07:05:37 +0000 (15:05 +0800)
committerhuangjun <hjwsm1989@gmail.com>
Tue, 28 Oct 2014 07:09:28 +0000 (15:09 +0800)
  If we have osd.7 and osd.77 on the same host, osd.7 will not be mounted if
  osd.77 is mounted.
Signed-off-by: huangjun <hjwsm1989@gmail.com>
src/init-ceph.in

index 0ed77abab66a861d272a79132617bc6397993850..1d39ed6f52c473c7fd19d329e69761458b3fb1e3 100644 (file)
@@ -342,10 +342,10 @@ for name in $what; do
 
                if [ "$fs_type" = "btrfs" ]; then
                    echo Mounting Btrfs on $host:$fs_path
-                   do_root_cmd_okfail "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $fs_path' /proc/mounts || mount -t btrfs $fs_opt $first_dev $fs_path"
+                   do_root_cmd_okfail "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $fs_path ' /proc/mounts || mount -t btrfs $fs_opt $first_dev $fs_path"
                else
                    echo Mounting $fs_type on $host:$fs_path
-                   do_root_cmd_okfail "modprobe $fs_type ; egrep -q '^[^ ]+ $fs_path' /proc/mounts || mount -t $fs_type $fs_opt $first_dev $fs_path"
+                   do_root_cmd_okfail "modprobe $fs_type ; egrep -q '^[^ ]+ $fs_path ' /proc/mounts || mount -t $fs_type $fs_opt $first_dev $fs_path"
                fi
                if [ "$ERR" != "0" ]; then
                    EXIT_STATUS=$ERR