mirror_zfs/tests/zfs-tests/tests/functional/cli_root
LOLi a8fa31b50b Fix 'zpool add' handling of nested interior VDEVs
When replacing a faulted device which was previously handled by a spare
multiple levels of nested interior VDEVs will be present in the pool
configuration; the following example illustrates one of the possible
situations:

   NAME                          STATE     READ WRITE CKSUM
   testpool                      DEGRADED     0     0     0
     raidz1-0                    DEGRADED     0     0     0
       spare-0                   DEGRADED     0     0     0
         replacing-0             DEGRADED     0     0     0
           /var/tmp/fault-dev    UNAVAIL      0     0     0  cannot open
           /var/tmp/replace-dev  ONLINE       0     0     0
         /var/tmp/spare-dev1     ONLINE       0     0     0
       /var/tmp/safe-dev         ONLINE       0     0     0
   spares
     /var/tmp/spare-dev1         INUSE     currently in use

This is safe and allowed, but get_replication() needs to handle this
situation gracefully to let zpool add new devices to the pool.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6678
Closes #6996
2018-01-30 10:27:31 -06:00
..
zdb OpenZFS 6392 - zdb: introduce -V for verbatim import 2017-04-18 09:50:15 -07:00
zfs OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_clone Fix arithmetic error message in zfs_clone_010_pos 2017-06-26 14:48:54 -07:00
zfs_copies Fix volume WR_INDIRECT log replay (#6620) 2017-09-13 16:04:16 -07:00
zfs_create Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
zfs_destroy Enable additional test cases 2017-05-11 14:27:57 -07:00
zfs_get Enable remaining tests 2017-05-22 12:34:32 -04:00
zfs_inherit OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_mount Fix remounting snapshots read-write 2017-08-21 16:46:52 -07:00
zfs_promote OpenZFS 8072 - zfs-tests: several test cases incorrectly spell TESTPOOL 2017-05-25 10:33:12 -07:00
zfs_property Enable remaining tests 2017-05-22 12:34:32 -04:00
zfs_receive Enable additional test cases 2017-05-11 14:27:57 -07:00
zfs_rename OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_reservation OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_rollback Fix volume WR_INDIRECT log replay (#6620) 2017-09-13 16:04:16 -07:00
zfs_send Disable zfs_send_007_pos 2017-08-02 11:20:32 -07:00
zfs_set Disable nbmand tests on kernels w/o support 2017-07-24 11:03:50 -07:00
zfs_share OpenZFS 7535 - need test for resumed send of top most filesystem 2017-04-12 08:47:42 -07:00
zfs_snapshot zfstest - replace dircmp with diff 2017-04-09 16:17:55 -07:00
zfs_unmount Enable remaining tests 2017-05-22 12:34:32 -04:00
zfs_unshare Enable remaining tests 2017-05-22 12:34:32 -04:00
zfs_upgrade Enable additional test cases 2017-05-11 14:27:57 -07:00
zpool OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_add Fix 'zpool add' handling of nested interior VDEVs 2018-01-30 10:27:31 -06:00
zpool_attach More ashift improvements 2017-05-03 09:31:05 -07:00
zpool_clear Fix ARC behavior on 32-bit systems 2017-10-16 10:57:55 -07:00
zpool_create Fix volume WR_INDIRECT log replay (#6620) 2017-09-13 16:04:16 -07:00
zpool_destroy OpenZFS 8071 - zfs-tests: 7290 missed some cases 2017-05-25 17:22:55 -07:00
zpool_detach OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_expand Enable remaining tests 2017-05-22 12:34:32 -04:00
zpool_export Enable additional test cases 2017-05-11 14:27:57 -07:00
zpool_get Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
zpool_history OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_import Fix zpool_import_all_001_pos 2017-06-13 09:05:55 -07:00
zpool_labelclear OpenZFS 6865 - want zfs-tests cases for zpool labelclear command 2017-04-11 09:54:39 -07:00
zpool_offline Force fault a vdev with 'zpool offline -f' 2017-05-19 12:30:16 -07:00
zpool_online OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_remove OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_replace More ashift improvements 2017-05-03 09:31:05 -07:00
zpool_scrub Implemented zpool scrub pause/resume 2017-07-06 22:16:13 -07:00
zpool_set More ashift improvements 2017-05-03 09:31:05 -07:00
zpool_status zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
zpool_sync Implemented zpool sync command 2017-05-19 12:33:11 -07:00
zpool_upgrade Fix ARC behavior on 32-bit systems 2017-10-16 10:57:55 -07:00
cli_common.kshlib OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
Makefile.am Implemented zpool sync command 2017-05-19 12:33:11 -07:00