mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 12:12:13 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
81eb8a1fbb
commit
1528bfdb14
+11
-1
@@ -86,11 +86,21 @@ typedef struct vdev_cmd_data_list
|
||||
{
|
||||
char *cmd; /* Command to run */
|
||||
unsigned int count; /* Number of vdev_cmd_data items (vdevs) */
|
||||
|
||||
/* vars to whitelist only certain vdevs, if requested */
|
||||
libzfs_handle_t *g_zfs;
|
||||
char **vdev_names;
|
||||
int vdev_names_count;
|
||||
int cb_name_flags;
|
||||
|
||||
vdev_cmd_data_t *data; /* Array of vdevs */
|
||||
|
||||
} vdev_cmd_data_list_t;
|
||||
|
||||
vdev_cmd_data_list_t *all_pools_for_each_vdev_run(int argc, char **argv,
|
||||
char *cmd);
|
||||
char *cmd, libzfs_handle_t *g_zfs, char **vdev_names, int vdev_names_count,
|
||||
int cb_name_flags);
|
||||
|
||||
void free_vdev_cmd_data_list(vdev_cmd_data_list_t *vcdl);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user