]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
initscript: unmount btrfs if we mounted it
authorSage Weil <sage@newdream.net>
Wed, 2 Jun 2010 18:32:22 +0000 (11:32 -0700)
committerSage Weil <sage@newdream.net>
Wed, 2 Jun 2010 18:50:29 +0000 (11:50 -0700)
src/init-ceph.in

index 7d5d6961fa956f0ae0d16f34556a74b55b18a9d6..e1c971379d018e7d9d9b3bed6b66a692fc90c33d 100644 (file)
@@ -262,6 +262,10 @@ for name in $what; do
            stop_daemon $name c$type $pid_file
            [ -n "$post_stop" ] && do_cmd "$post_stop"
            [ -n "$lockfile" ] && [ "$?" = 0 ] && rm -f $lockfile
+           if [ $dobtrfs -eq 1 ] && [ -n "$btrfs_devs" ]; then
+               echo Unmounting Btrfs on $host:$btrfs_path
+               do_root_cmd "umount $btrfs_path"        
+           fi
            ;;
 
        status)