]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Make fsck.xfs verify the device exists
authorBarry Naujok <bnaujok@sgi.com>
Tue, 9 Oct 2007 04:10:02 +0000 (04:10 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Tue, 9 Oct 2007 04:10:02 +0000 (04:10 +0000)
Merge of master-melb:xfs-cmds:29851a by kenmcd.

  Make fsck.xfs verify the device exists

fsck/xfs_fsck.sh

index c9be5e394981118362b472c85541e64979380436..016b22dc7ff0c178b3afa4b8ff899618d21b85f7 100755 (executable)
@@ -10,6 +10,11 @@ do
        a|A)    AUTO=true;;
        esac
 done
+eval DEV=\${$#}
+if [ ! -e $DEV ]; then
+       echo "$0: $DEV does not exist"
+       exit 8
+fi
 if $AUTO; then
        echo "$0: XFS file system."
 else