3
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
3
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
5
5
# This program is free software; you can redistribute it and/or modify it
6
6
# under the terms of version 2 of the GNU General Public License as
7
7
# published by the Free Software Foundation.
9
9
# This program is distributed in the hope that it would be useful, but
10
10
# WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
13
# Further, this software is distributed without any warranty that it is
14
14
# free of the rightful claim of any third person regarding infringement
15
15
# or the like. Any license provided herein, whether implied or
16
16
# otherwise, applies only to this software file. Patent licenses, if
17
17
# any, provided herein do not apply to combinations of this program with
18
18
# other software, or any other product whatsoever.
20
20
# You should have received a copy of the GNU General Public License along
21
21
# with this program; if not, write the Free Software Foundation, Inc., 59
22
22
# Temple Place - Suite 330, Boston MA 02111-1307, USA.
24
24
# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25
25
# Mountain View, CA 94043, or:
29
# For further information regarding this notice, see:
29
# For further information regarding this notice, see:
31
31
# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
33
#ident "$Revision: 1.1 $"
37
USAGE="usage: xfs_check [-svf] [-i ino]... [-b bno]... special"
40
while getopts "b:fi:sv" c
36
USAGE="Usage: xfs_check [-fsvV] [-l logdev] [-i ino]... [-b bno]... special"
38
while getopts "b:fi:l:stvV" c
43
41
s) OPTS=$OPTS"-s ";;
44
43
v) OPTS=$OPTS"-v ";;
45
45
i) OPTS=$OPTS"-i "$OPTARG" ";;
46
46
b) OPTS=$OPTS"-b "$OPTARG" ";;
47
f) DBOPTS=$DBOPTS" -f";;
48
l) DBOPTS=$DBOPTS" -l "$OPTARG" ";;
48
49
\?) echo $USAGE 1>&2