loli10K c24fa4b19a Fix "zpool add -n" for dedup, special and log devices
For dedup, special and log devices "zpool add -n" does not print
correctly their vdev type:

~# zpool add -n pool dedup /tmp/dedup special /tmp/special log /tmp/log
would update 'pool' to the following configuration:
	pool
	  /tmp/normal
	  /tmp/dedup
	  /tmp/special
	  /tmp/log

This could lead storage administrators to modify their ZFS pools to
unexpected and unintended vdev configurations.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9783 
Closes #9390
2020-01-06 15:40:06 -08:00
..
2019-08-30 09:43:30 -07:00
2019-10-02 10:39:48 -07:00
2019-08-30 09:43:30 -07:00
2019-10-03 10:20:44 -07:00
2017-07-25 13:22:03 -04:00
2019-11-01 10:31:42 -07:00
2019-10-02 10:39:48 -07:00