mirror_zfs/tests/zfs-tests/tests/functional
LOLi 390d679acd 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
2017-12-28 10:15:32 -08:00
..
acl ZTS: replace su commands by run_user function 2017-07-05 10:46:52 -07:00
atime OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
bootfs Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
cache Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
cachefile Remove vn_rename and vn_remove dependency 2017-10-19 10:06:55 -07:00
casenorm OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
chattr Fix chattr_001_pos 2017-07-07 15:45:29 -07:00
checksum OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
clean_mirror Implemented zpool sync command 2017-05-19 12:33:11 -07:00
cli_root Fix 'zpool add' handling of nested interior VDEVs 2017-12-28 10:15:32 -08:00
cli_user Handle broken pipes in arc_summary 2017-12-19 13:19:24 -08:00
compression OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
ctime Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
delegate Enable remaining tests 2017-05-22 12:34:32 -04:00
devices Enable remaining tests 2017-05-22 12:34:32 -04:00
events Sequential scrub and resilvers 2017-11-15 17:27:01 -08:00
exec Enable remaining tests 2017-05-22 12:34:32 -04:00
fault Various ZED fixes 2017-12-08 16:58:41 -08:00
features Fix ARC behavior on 32-bit systems 2017-10-10 15:19:19 -07:00
grow_pool Fix ZTS grow_pool/setup 2017-08-15 16:40:04 -07:00
grow_replicas Enable remaining tests 2017-05-22 12:34:32 -04:00
history Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
hkdf Encryption patch follow-up 2017-10-11 16:54:48 -04:00
inheritance OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
inuse Enable remaining tests 2017-05-22 12:34:32 -04:00
large_files Enable remaining tests 2017-05-22 12:34:32 -04:00
largest_pool Enable remaining tests 2017-05-22 12:34:32 -04:00
libzfs Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00
link_count Enable remaining tests 2017-05-22 12:34:32 -04:00
migration OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
mmap Enable remaining tests 2017-05-22 12:34:32 -04:00
mmp Fix multihost stale cache file import 2017-12-18 10:28:27 -08:00
mount Enable remaining tests 2017-05-22 12:34:32 -04:00
mv_files OpenZFS 7629 - Fix for 7290 neglected to remove some escape sequences 2017-04-07 09:30:05 -07:00
nestedfs OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
no_space Fix size inflation in spa_get_worst_case_asize() 2017-04-10 15:28:21 -07:00
nopwrite Enable remaining tests 2017-05-22 12:34:32 -04:00
online_offline Enable remaining tests 2017-05-22 12:34:32 -04:00
pool_names Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
poolversion Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
privilege ZTS: replace su commands by run_user function 2017-07-05 10:46:52 -07:00
quota OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
raidz OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
redundancy Enable remaining tests 2017-05-22 12:34:32 -04:00
refquota OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
refreserv Relax (ref)reservation constraints on ZVOLs 2017-09-12 11:33:22 -07:00
rename_dirs Enable remaining tests 2017-05-22 12:34:32 -04:00
replacement OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
reservation Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
rootpool OpenZFS 8076 - zfs-tests suite fails rootpool_002_neg 2017-05-25 17:29:08 -07:00
rsend Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
scrub_mirror OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
slog OpenZFS 8909 - 8585 can cause a use-after-free kernel panic 2017-12-28 10:18:04 -08:00
snapshot Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
snapused OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
sparse OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
threadsappend Enable remaining tests 2017-05-22 12:34:32 -04:00
tmpfile Add tmpfile_003_pos to .gitignore 2017-02-03 13:42:49 -08:00
truncate Fix truncate(2) mtime and ctime handling 2017-11-13 09:24:26 -08:00
upgrade Implemented zpool sync command 2017-05-19 12:33:11 -07:00
userquota Fix 'zfs get {user|group}objused@' functionality 2017-11-29 11:59:22 -08:00
vdev_zaps Disable vdev_zaps_004_pos 2017-12-07 16:43:59 -08:00
write_dirs Skip tests that are slow on 32-bit builders 2017-06-06 19:04:01 -07:00
xattr Fix volume WR_INDIRECT log replay 2017-09-08 15:07:00 -07:00
zvol Disable zvol_ENOSPC_001_pos on 32-bit systems 2017-11-13 16:26:15 -08:00
Makefile.am Encryption patch follow-up 2017-10-11 16:54:48 -04:00