Update helper scripts

This commit is contained in:
Brian Behlendorf 2009-01-08 16:20:25 -08:00
parent 0e5efe5ab4
commit cd0b9c18b7
2 changed files with 18 additions and 9 deletions

View File

@ -1,5 +1,4 @@
EXTRA_DIST = update-zfs.sh check.sh EXTRA_DIST = update-zfs.sh check.sh zfs.sh create-zpool.sh
EXTRA_DIST += load-zfs.sh unload-zfs.sh create-zpool.sh
check: check:
./check.sh ./check.sh

View File

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
#
# A simple script to simply the loading/unloading the ZFS module
# stack. It should probably be considered a first step towards
# a full ZFS init script when that is needed.
#
prog=load-zfs.sh prog=zfs.sh
. ../.script-config . ../.script-config
KMOD=/lib/modules/${KERNELSRCVER}/kernel KMOD=/lib/modules/${KERNELSRCVER}/kernel
@ -38,15 +43,20 @@ die() {
usage() { usage() {
cat << EOF cat << EOF
usage: $0 [hvu] [module-options] USAGE:
$0 [hvud] [module-options]
DESCRIPTION:
Load/unload the ZFS module stack.
OPTIONS: OPTIONS:
-h Show this message -h Show this message
-v Verbose -v Verbose
-u Unload modules -u Unload modules
-d Save debug log on unload -d Save debug log on unload
MODULE-OPTIONS: Must be of the frm module="options", for example: MODULE-OPTIONS:
Must be of the frm module="options", for example:
$0 zpool="zfs_prefetch_disable=1" $0 zpool="zfs_prefetch_disable=1"
$0 zpool="zfs_prefetch_disable=1 zfs_mdcomp_disable=1" $0 zpool="zfs_prefetch_disable=1 zfs_mdcomp_disable=1"