Cleanup nits from ab7615d92
This patch simply up cleans up a nit and corrects an error message issue that were introduced in the Multiple DVA scrub patch. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tom Caputi <tcaputi@datto.com> Closes #8619
This commit is contained in:
parent
b92f5d9f82
commit
7dcd318832
|
@ -1221,7 +1221,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
if (dvas != 0) {
|
if (dvas != 0) {
|
||||||
if (error == EACCES || error == EINVAL) {
|
if (error == EACCES || error == EINVAL) {
|
||||||
(void) fprintf(stderr, "the '-c' option may "
|
(void) fprintf(stderr, "the '-C' option may "
|
||||||
"not be used with logical data errors "
|
"not be used with logical data errors "
|
||||||
"'decrypt' and 'decompress'\n");
|
"'decrypt' and 'decompress'\n");
|
||||||
libzfs_fini(g_zfs);
|
libzfs_fini(g_zfs);
|
||||||
|
|
|
@ -257,8 +257,6 @@ vdev_mirror_map_init(zio_t *zio)
|
||||||
dsl_scan_t *scn = spa->spa_dsl_pool->dp_scan;
|
dsl_scan_t *scn = spa->spa_dsl_pool->dp_scan;
|
||||||
dva_t dva_copy[SPA_DVAS_PER_BP];
|
dva_t dva_copy[SPA_DVAS_PER_BP];
|
||||||
|
|
||||||
c = BP_GET_NDVAS(zio->io_bp);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The sequential scrub code sorts and issues all DVAs
|
* The sequential scrub code sorts and issues all DVAs
|
||||||
* of a bp separately. Each of these IOs includes all
|
* of a bp separately. Each of these IOs includes all
|
||||||
|
|
Loading…
Reference in New Issue