]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - growfs/xfs_info.sh
libxfs/linux.c: Replace use of ustat by stat
[thirdparty/xfsprogs-dev.git] / growfs / xfs_info.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_info [-V] [-t mtab] mountpoint"
8
9 while getopts "t:V" c
10 do
11 case $c in
12 t) OPTS="-t $OPTARG" ;;
13 V) xfs_growfs -p xfs_info -V
14 status=$?
15 exit $status
16 ;;
17 *) echo $USAGE 1>&2
18 exit 2
19 ;;
20 esac
21 done
22 set -- extra "$@"
23 shift $OPTIND
24 case $# in
25 1) xfs_growfs -p xfs_info -n $OPTS "$1"
26 status=$?
27 ;;
28 *) echo $USAGE 1>&2
29 exit 2
30 ;;
31 esac
32 exit $status