home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / usr / sbin / xfs_info < prev    next >
Text File  |  2006-11-29  |  431b  |  30 lines

  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)    OPTS="-V $OPTARG" ;;
  14.     *)    echo $USAGE 1>&2
  15.         exit 2
  16.         ;;
  17.     esac
  18. done
  19. set -- extra $@
  20. shift $OPTIND
  21. case $# in
  22.     1)    xfs_growfs -p xfs_info -n $OPTS $1
  23.         status=$?
  24.         ;;
  25.     *)    echo $USAGE 1>&2
  26.         exit 2
  27.         ;;
  28. esac
  29. exit $status
  30.