[BACK]Return to xfs_fsck.sh CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfsprogs / fsck

File: [Development] / xfs-cmds / xfsprogs / fsck / xfs_fsck.sh (download)

Revision 1.4, Tue Apr 15 16:20:23 2008 UTC (9 years, 6 months ago) by bnaujok.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines

Silently support the -p option
Merge of master-melb:xfs-cmds:30881a by kenmcd.

  Support the -p option in fsck.xfs

#!/bin/sh -f
#
# Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
#

AUTO=false
while getopts ":aApy" c
do
	case $c in
	a|A|p|y)	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