]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
Various ZED fixes
authorLOLi <loli10K@users.noreply.github.com>
Sat, 9 Dec 2017 00:58:41 +0000 (01:58 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 9 Dec 2017 00:58:41 +0000 (16:58 -0800)
commit4e9b156960562373e005798575a3fbc6d66e32ff
treea554474cae9721dbb6756620e5009b1fa4f31ad6
parent3ab3166347b84c6004002f9a6d06f7a87fe1cd4a
Various ZED fixes

* Teach ZED to handle spares usingi the configured ashift: if the zpool
   'ashift' property is set then ZED should use its value when kicking
   in a hotspare; with this change 512e disks can be used as spares
   for VDEVs that were created with ashift=9, even if ZFS natively
   detects them as 4K block devices.

 * Introduce an additional auto_spare test case which verifies that in
   the face of multiple device failures an appropiate number of spares
   are kicked in.

 * Fix zed_stop() in "libtest.shlib" which did not correctly wait the
   target pid.

 * Fix ZED crashing on startup caused by a race condition in libzfs
   when used in multi-threaded context.

 * Convert ZED over to using the tpool library which is already present
   in the Illumos FMA code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #2562
Closes #6858
19 files changed:
cmd/zed/agents/zfs_agents.c
cmd/zed/agents/zfs_agents.h
cmd/zed/agents/zfs_diagnosis.c
cmd/zed/agents/zfs_mod.c
cmd/zed/agents/zfs_retire.c
tests/runfiles/linux.run
tests/zfs-tests/include/blkdev.shlib
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/cli_root/zpool_reopen/cleanup.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_reopen/setup.ksh
tests/zfs-tests/tests/functional/fault/Makefile.am
tests/zfs-tests/tests/functional/fault/auto_online_001_pos.ksh
tests/zfs-tests/tests/functional/fault/auto_replace_001_pos.ksh
tests/zfs-tests/tests/functional/fault/auto_spare_001_pos.ksh
tests/zfs-tests/tests/functional/fault/auto_spare_002_pos.ksh
tests/zfs-tests/tests/functional/fault/auto_spare_ashift.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/auto_spare_multiple.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/cleanup.ksh
tests/zfs-tests/tests/functional/fault/setup.ksh