]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - db/xfs_ncheck64.sh
Update copyright dates (again)
[thirdparty/xfsprogs-dev.git] / db / xfs_ncheck64.sh
CommitLineData
2bd0ea18
NS
1#!/bin/sh -f
2#
0d3e0b37 3# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
2bd0ea18
NS
4#
5# This program is free software; you can redistribute it and/or modify it
6# under the terms of version 2 of the GNU General Public License as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it would be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12#
13# Further, this software is distributed without any warranty that it is
14# free of the rightful claim of any third person regarding infringement
15# or the like. Any license provided herein, whether implied or
16# otherwise, applies only to this software file. Patent licenses, if
17# any, provided herein do not apply to combinations of this program with
18# other software, or any other product whatsoever.
19#
20# You should have received a copy of the GNU General Public License along
21# with this program; if not, write the Free Software Foundation, Inc., 59
22# Temple Place - Suite 330, Boston MA 02111-1307, USA.
23#
24# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25# Mountain View, CA 94043, or:
26#
27# http://www.sgi.com
28#
29# For further information regarding this notice, see:
30#
31# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32#
0d3e0b37 33#ident "$Revision: 1.4 $"
2bd0ea18
NS
34
35OPTS=" "
36ISFILE=" "
37USAGE="usage: xfs_ncheck64 [-sf] [-i ino]... special"
38
39
40while getopts "b:fi:sv" c
41do
42 case $c in
43 s) OPTS=$OPTS"-s ";;
44 i) OPTS=$OPTS"-i "$OPTARG" ";;
45 f) ISFILE=" -f";;
46 \?) echo $USAGE 1>&2
47 exit 2
48 ;;
49 esac
50done
51set -- extra $@
52shift $OPTIND
53case $# in
54 1) xfs_db64$ISFILE -r -p xfs_ncheck64 -c "blockget -ns" -c "ncheck$OPTS" $1
55 status=$?
56 ;;
57 *) echo $USAGE 1>&2
58 exit 2
59 ;;
60esac
61exit $status