mirror_zfs/cmd
Chunwei Chen 83a5e4d6b9 Fix don't zero_label when replace with spare
When replacing a disk with non-wholedisk spare, we shouldn't zero_label
it. The wholedisk case already skip it. In fact, zero_label function
will fail saying device busy because it's already opened exclusively,
but since there's no error checking, the replace command will succeed,
causing great confusion.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #6369
2017-07-24 12:49:27 -07:00
..
arc_summary Correct arc_summary and dbufstat python style 2017-03-09 10:21:59 -08:00
arcstat Correct exit code for dbufstat -v and arcstat -v 2016-10-06 10:52:21 -07:00
dbufstat Correct arc_summary and dbufstat python style 2017-03-09 10:21:59 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Add MS_MANDLOCK mount failure message 2017-06-07 10:59:44 -07:00
raidz_test Add missing *_destroy/*_fini calls 2017-05-04 19:26:28 -04:00
vdev_id vdev_id: fix failure due to multipath -l bug 2017-04-20 12:10:55 -07:00
zdb Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
zed Enable remaining tests 2017-05-22 12:34:32 -04:00
zfs Add missing \n for "invalid optionusage" output 2017-06-09 09:51:13 -07:00
zhack Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
zinject Inject zinject(8) a percentage amount of dev errs 2017-06-16 17:21:11 -07:00
zpios Fix spelling 2017-01-03 11:31:18 -06:00
zpool Fix don't zero_label when replace with spare 2017-07-24 12:49:27 -07:00
zstreamdump OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
ztest Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
zvol_id OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
Makefile.am SIMD implementation of vdev_raidz generate and reconstruct routines 2016-06-21 09:27:26 -07:00