]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - db/xfs_ncheck.sh
kill off u_int*_t types
[thirdparty/xfsprogs-dev.git] / db / xfs_ncheck.sh
CommitLineData
2bd0ea18
NS
1#!/bin/sh -f
2#
0d3e0b37 3# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
dfc130f3 4#
2bd0ea18
NS
5
6OPTS=" "
add013da
NS
7DBOPTS=" "
8USAGE="usage: xfs_ncheck [-sfV] [-l logdev] [-i ino]... special"
2bd0ea18
NS
9
10
add013da 11while getopts "b:fi:l:svV" c
2bd0ea18
NS
12do
13 case $c in
14 s) OPTS=$OPTS"-s ";;
15 i) OPTS=$OPTS"-i "$OPTARG" ";;
9440d84d 16 v) OPTS=$OPTS"-v ";;
add013da
NS
17 f) DBOPTS=$DBOPTS" -f";;
18 l) DBOPTS=$DBOPTS" -l "$OPTARG" ";;
138aab65
CH
19 V) xfs_db -p xfs_ncheck -V
20 status=$?
21 exit $status
22 ;;
2bd0ea18
NS
23 \?) echo $USAGE 1>&2
24 exit 2
25 ;;
26 esac
27done
28set -- extra $@
29shift $OPTIND
30case $# in
add013da 31 1) xfs_db$DBOPTS -r -p xfs_ncheck -c "blockget -ns" -c "ncheck$OPTS" $1
2bd0ea18
NS
32 status=$?
33 ;;
34 *) echo $USAGE 1>&2
35 exit 2
36 ;;
37esac
38exit $status