]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - growfs/xfs_info.sh
Make sure "." and ".." are the first two entries in a directory
[thirdparty/xfsprogs-dev.git] / growfs / xfs_info.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=""
9440d84d 7USAGE="Usage: xfs_info [-V] [-t mtab] mountpoint"
2bd0ea18 8
9440d84d 9while getopts "t:V" c
2bd0ea18
NS
10do
11 case $c in
12 t) OPTS="-t $OPTARG" ;;
9440d84d 13 V) OPTS="-V $OPTARG" ;;
2bd0ea18
NS
14 *) echo $USAGE 1>&2
15 exit 2
16 ;;
17 esac
18done
19set -- extra $@
20shift $OPTIND
21case $# in
22 1) xfs_growfs -p xfs_info -n $OPTS $1
23 status=$?
24 ;;
25 *) echo $USAGE 1>&2
26 exit 2
27 ;;
28esac
29exit $status