]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/vstart.sh: Only execute btrfs if it is available 11683/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 28 Oct 2016 22:39:18 +0000 (00:39 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 2 Nov 2016 10:22:50 +0000 (11:22 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/vstart.sh

index 2da28246dd4b709b9f34f232f901142edeea7526..da4f8c2e39527d837a4a24168f20d925a827c1de 100755 (executable)
@@ -661,7 +661,9 @@ if [ "$start_osd" -eq 1 ]; then
 EOF
 
            rm -rf $CEPH_DEV_DIR/osd$osd || true
-           for f in $CEPH_DEV_DIR/osd$osd/*; do btrfs sub delete $f &> /dev/null || true; done
+            if command -v btrfs > /dev/null; then
+               for f in $CEPH_DEV_DIR/osd$osd/*; do btrfs sub delete $f &> /dev/null || true; done
+            fi
            mkdir -p $CEPH_DEV_DIR/osd$osd
 
            uuid=`uuidgen`