]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
zpool iostat/status -c improvements
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Mon, 5 Jun 2017 17:52:15 +0000 (13:52 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 5 Jun 2017 17:52:15 +0000 (10:52 -0700)
commit099700d9dff46309cdd16f4c4331daddb70d8570
tree13383ee2af7cc69b0f790b3c3f70fbc61ae074fb
parent92aceb2a7ee8c9367fdc901fed933f6f258173e0
zpool iostat/status -c improvements

Users can now provide their own scripts to be run
with 'zpool iostat/status -c'. User scripts should be
placed in ~/.zpool.d to be included in zpool's
default search path.

Provide a script which can be used with
'zpool iostat|status -c' that will return the type of
device (hdd, sdd, file).

Provide a script to get various values from smartctl
when using 'zpool iostat/status -c'.

Allow users to define the ZPOOL_SCRIPTS_PATH
environment variable which can be used to override
the default 'zpool iostat/status -c' search path.

Allow the ZPOOL_SCRIPTS_ENABLED environment
variable to enable or disable 'zpool status/iostat -c'
functionality.

Use the new smart script to provide the serial command.

Install /etc/sudoers.d/zfs file which contains the sudoer
rule for smartctl as a sample.

Allow 'zpool iostat/status -c' tests to run in tree.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6121
Closes #6153
43 files changed:
cmd/zpool/Makefile.am
cmd/zpool/zpool.d/ata_err [new symlink]
cmd/zpool/zpool.d/cmd_to [new symlink]
cmd/zpool/zpool.d/defect [new symlink]
cmd/zpool/zpool.d/health [new symlink]
cmd/zpool/zpool.d/hours_on [new symlink]
cmd/zpool/zpool.d/lsblk
cmd/zpool/zpool.d/media [new file with mode: 0755]
cmd/zpool/zpool.d/nonmed [new symlink]
cmd/zpool/zpool.d/off_ucor [new symlink]
cmd/zpool/zpool.d/pend_sec [new symlink]
cmd/zpool/zpool.d/pwr_cyc [new symlink]
cmd/zpool/zpool.d/r_proc [new symlink]
cmd/zpool/zpool.d/r_ucor [new symlink]
cmd/zpool/zpool.d/realloc [new symlink]
cmd/zpool/zpool.d/rep_ucor [new symlink]
cmd/zpool/zpool.d/serial
cmd/zpool/zpool.d/ses
cmd/zpool/zpool.d/smart [new file with mode: 0755]
cmd/zpool/zpool.d/smartx [new symlink]
cmd/zpool/zpool.d/temp [new symlink]
cmd/zpool/zpool.d/w_proc [new symlink]
cmd/zpool/zpool.d/w_ucor [new symlink]
cmd/zpool/zpool_iter.c
cmd/zpool/zpool_main.c
cmd/zpool/zpool_util.h
configure.ac
etc/Makefile.am
etc/sudoers.d/Makefile.am [new file with mode: 0644]
etc/sudoers.d/zfs [new file with mode: 0644]
man/man8/zpool.8
rpm/generic/zfs.spec.in
scripts/zfs-helpers.sh
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_disable.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_homedir.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_searchpath.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile.am
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_-c_disable.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_-c_homedir.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_-c_searchpath.ksh [new file with mode: 0755]
zfs-script-config.sh.in