|
|
| File: [Development] / xfs-cmds / xfsprogs / db / xfs_admin.sh (download)
Revision 1.10, Fri Nov 11 14:27:22 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Update copyright/license notices to match SGI legal prefered boilerplate. Merge of master-melb:xfs-cmds:24374a by kenmcd. |
#!/bin/sh -f # # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # OPTS="" USAGE="Usage: xfs_admin [-efluV] [-L label] [-U uuid] special" while getopts "efluL:U:V" c do case $c in e) OPTS=$OPTS" -c 'version extflg'";; f) OPTS=$OPTS" -f";; l) OPTS=$OPTS" -r -c label";; L) OPTS=$OPTS" -c 'label "$OPTARG"'";; u) OPTS=$OPTS" -r -c uuid";; U) OPTS=$OPTS" -c 'uuid "$OPTARG"'";; V) OPTS=$OPTS" -V";; \?) echo $USAGE 1>&2 exit 2 ;; esac done set -- extra $@ shift $OPTIND case $# in 1) eval xfs_db -x -p xfs_admin $OPTS $1 status=$? ;; *) echo $USAGE 1>&2 exit 2 ;; esac exit $status