From: Barry Naujok Date: Tue, 9 Oct 2007 04:10:02 +0000 (+0000) Subject: Make fsck.xfs verify the device exists X-Git-Tag: v2.10.0~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec16267ed4fdeecc9b8eb9f6a143703bc6fad17f;p=thirdparty%2Fxfsprogs-dev.git Make fsck.xfs verify the device exists Merge of master-melb:xfs-cmds:29851a by kenmcd. Make fsck.xfs verify the device exists --- diff --git a/fsck/xfs_fsck.sh b/fsck/xfs_fsck.sh index c9be5e394..016b22dc7 100755 --- a/fsck/xfs_fsck.sh +++ b/fsck/xfs_fsck.sh @@ -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