]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - db/xfs_admin.sh
Update copyright/license notices to match SGI legal prefered boilerplate.
[thirdparty/xfsprogs-dev.git] / db / xfs_admin.sh
1 #!/bin/sh -f
2 #
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4 #
5
6 OPTS=""
7 USAGE="Usage: xfs_admin [-efluV] [-L label] [-U uuid] special"
8
9 while getopts "efluL:U:V" c
10 do
11 case $c in
12 e) OPTS=$OPTS" -c 'version extflg'";;
13 f) OPTS=$OPTS" -f";;
14 l) OPTS=$OPTS" -r -c label";;
15 L) OPTS=$OPTS" -c 'label "$OPTARG"'";;
16 u) OPTS=$OPTS" -r -c uuid";;
17 U) OPTS=$OPTS" -c 'uuid "$OPTARG"'";;
18 V) OPTS=$OPTS" -V";;
19 \?) echo $USAGE 1>&2
20 exit 2
21 ;;
22 esac
23 done
24 set -- extra $@
25 shift $OPTIND
26 case $# in
27 1) eval xfs_db -x -p xfs_admin $OPTS $1
28 status=$?
29 ;;
30 *) echo $USAGE 1>&2
31 exit 2
32 ;;
33 esac
34 exit $status