|
|
| File: [Development] / xfs-cmds / xfsprogs / db / xfs_admin.sh (download)
Revision 1.11, Thu May 18 03:48:51 2006 UTC (11 years, 5 months ago) by nathans.longdrop.melbourne.sgi.com
Add code to xfs_db/admin to allow version 1 to version 2 log transition. Merge of master-melb:xfs-cmds:25961a by kenmcd. |
#!/bin/sh -f # # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # OPTS="" USAGE="Usage: xfs_admin [-efjluV] [-L label] [-U uuid] special" while getopts "efjluL:U:V" c do case $c in e) OPTS=$OPTS" -c 'version extflg'";; f) OPTS=$OPTS" -f";; j) OPTS=$OPTS" -c 'version log2'";; 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