zfs/cmd/zpool/zpool.d
наб 420b44488f
Remove basename(1). Clean up/shorten some coreutils pipelines
Basenames that remain, in cmd/zed/zed.d/statechange-led.sh:
	dev=$(basename "$(echo "$therest" | awk '{print $(NF-1)}')")
	vdev=$(basename "$ZEVENT_VDEV_PATH")
I don't wanna interfere with #11988

scripts/zfs-tests.sh:
	SINGLETESTFILE=$(basename "$SINGLETEST")
tests/zfs-tests/tests/functional/cli_user/zfs_list/zfs_list.kshlib:
	ACTUAL=$(basename $dataset)
	ACTUAL=$(basename $dataset)
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/
	zpool_iostat_-c_homedir.ksh:
	typeset USER_SCRIPT=$(basename "$USER_SCRIPT_FULL")
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/
	zpool_iostat_-c_searchpath.ksh:
	typeset CMD_1=$(basename "$SCRIPT_1")
	typeset CMD_2=$(basename "$SCRIPT_2")
tests/zfs-tests/tests/functional/cli_user/zpool_status/
	zpool_status_-c_homedir.ksh:
	typeset USER_SCRIPT=$(basename "$USER_SCRIPT_FULL")
tests/zfs-tests/tests/functional/cli_user/zpool_status/
	zpool_status_-c_searchpath.ksh
	typeset CMD_1=$(basename "$SCRIPT_1")
	typeset CMD_2=$(basename "$SCRIPT_2")
tests/zfs-tests/tests/functional/migration/migration.cfg:
	export BNAME=`basename $TESTFILE`
tests/zfs-tests/tests/perf/perf.shlib:
	typeset logbase="$(get_perf_output_dir)/$(basename \
tests/zfs-tests/tests/perf/perf.shlib:
	typeset logbase="$(get_perf_output_dir)/$(basename \

These are potentially Of Directories, where basename is actually
useful

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12652
2021-11-11 13:27:37 -07:00
..
README Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
ata_err zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
cmd_to zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
defect zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
dm-deps Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
enc Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
encdev Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
fault_led Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
health zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
hours_on zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
iostat Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
iostat-1s Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
iostat-10s Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
label Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
locate_led Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
lsblk Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
media Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
model Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
nonmed zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
nvme_err Add SMART attributes for SSD and NVMe 2018-02-21 13:52:47 -08:00
off_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
pend_sec zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
pwr_cyc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
r_proc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
r_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
realloc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
rep_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
serial zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
ses Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
size Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
slot Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
smart Turn checkbashisms into a make target 2021-06-01 11:38:54 -07:00
smart_test Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
smartx zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
temp zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
test_ended Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_progress Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_status Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
test_type Add SMART self-test results to zpool status -c 2018-02-27 09:31:27 -08:00
upath Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
vendor Prebaked scripts for zpool status/iostat -c 2017-04-21 09:27:04 -07:00
w_proc zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
w_ucor zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00

README

This directory contains scripts that can be run the zpool status/iostat
-c option:

	zpool status -c script1,script2, ...

	zpool iostat -vc script1,script2, ...

Some scripts output different values depending on the symlink name that is
used to run them.  See the zpool(8) man page for more details.