Don't run 'zpool iostat -c CMD' command on all vdevs, if vdevs specified
commit1528bfdb148b44eaa0522109fee1ab61f4f3214b
authorTony Hutter <hutter2@llnl.gov>
Sat, 17 Dec 2016 00:10:45 +0000 (16 16:10 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 17 Dec 2016 00:10:45 +0000 (16 16:10 -0800)
tree74da77e5a11483e4acdec247821ec54eb90974e2
parent81eb8a1fbb5dae86bebdc6c518071ae3ab062e3f
Don't run 'zpool iostat -c CMD' command on all vdevs, if vdevs specified

zpool iostat allows you to specify only certain vdevs to display.
Currently, if you run 'zpool iostat -c CMD vdev1 vdev2 ...'
on specific vdevs, it will actually run the command on *all* vdevs,
and just display the results for the vdevs you specify.  This patch
corrects the behavior to only run the command on the specified vdevs,
and also enables the zpool_iostat_005_pos.ksh tests.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #5443
cmd/zpool/zpool_iter.c
cmd/zpool/zpool_main.c
cmd/zpool/zpool_util.h
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_user/zpool_iostat/zpool_iostat_005_pos.ksh