]> granicus.if.org Git - zfs/commit
Pass status_cbdata_t to print_status_config() and friends
authorHåkan Johansson <f96hajo@chalmers.se>
Mon, 17 Oct 2016 18:46:35 +0000 (20:46 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 17 Oct 2016 18:46:35 +0000 (11:46 -0700)
commitfea33e4e5010e209a4d05fa3f59b7155859e1593
treec6ed9ef0d58a775ecb57659c54fb9edd1b5542a4
parent7e8a2d0b755ea67291d3f576069706e43abc5e31
Pass status_cbdata_t to print_status_config() and friends

First rename spare_cbdata_t cb -> spare_cb in print_status_config(),
to free up cb.

Using the structure removes the explicit parameters namewidth
and name_flags from several functions.  Also use status_cbdata_t
for print_import_config().  This simplifies print_logs().

Remove the parameter 'verbose' for print_logs().  It does not really
mean verbose, it selected between the print_status_config and
print_import_config() paths.  This selection is now done by
cb_print_config of spare_cbdata_t.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Håkan Johansson <f96hajo@chalmers.se>
Closes #5259
cmd/zpool/zpool_main.c