]> granicus.if.org Git - zfs/commit
Allow add of raidz and mirror with same redundancy
authorHåkan Johansson <f96hajo@chalmers.se>
Mon, 5 Jun 2017 20:53:09 +0000 (22:53 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 5 Jun 2017 20:53:09 +0000 (13:53 -0700)
commit6eb6073a044653016013b1a72de03a1257e899c5
tree34a8691149db359fcd1fb12361d11bd2162bda00
parent9f7b066bd901128f0a5e481e3c23ae9857b1263e
Allow add of raidz and mirror with same redundancy

Allow new members to be added to a pool mixing raidz and mirror vdevs
without giving -f, as long as they have matching redundancy.  This case
was missed in #5915, which only handled zpool create.

Add zfstest zpool_add_010_pos.ksh, with test of zpool create
followed by zpool add of mixed raidz and mirror vdevs.

Add some more mixed raidz and mirror cases to zpool_create_006_pos.ksh.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Haakan Johansson <f96hajo@chalmers.se>
Issue #5915
Closes #6181
cmd/zpool/zpool_vdev.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_010_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_006_pos.ksh