|
|
| File: [Development] / xfs-cmds / xfsprogs / fsck / xfs_fsck.sh (download)
Revision 1.2, Tue Oct 9 04:10:02 2007 UTC (10 years ago) by bnaujok.longdrop.melbourne.sgi.com
Make fsck.xfs verify the device exists Merge of master-melb:xfs-cmds:29851a by kenmcd. Make fsck.xfs verify the device exists |
#!/bin/sh -f
#
# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
#
AUTO=false
while getopts ":aA" c
do
case $c in
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
echo "If you wish to check the consistency of an XFS filesystem or"
echo "repair a damaged filesystem, see xfs_check(8) and xfs_repair(8)."
fi
exit 0