From d48091de81e5eab2aa32d7a52db4f147bd813523 Mon Sep 17 00:00:00 2001 From: loli10K Date: Tue, 18 Sep 2018 23:45:52 +0200 Subject: zed: detect and offline physically removed devices This commit adds a new test case to the ZFS Test Suite to verify ZED can detect when a device is physically removed from a running system: the device will be offlined if a spare is not available in the pool. We implement this by using the existing libudev functionality and without relying solely on the FM kernel module capabilities which have been observed to be unreliable with some kernels. Reviewed-by: Brian Behlendorf Reviewed-by: Don Brady Signed-off-by: loli10K Closes #1537 Closes #7926 --- tests/runfiles/linux.run | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/runfiles') diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run index e52ab9078..e5826dd7a 100644 --- a/tests/runfiles/linux.run +++ b/tests/runfiles/linux.run @@ -543,10 +543,10 @@ tests = ['exec_001_pos', 'exec_002_neg'] tags = ['functional', 'exec'] [tests/functional/fault] -tests = ['auto_online_001_pos', 'auto_replace_001_pos', 'auto_spare_001_pos', - 'auto_spare_002_pos', 'auto_spare_ashift', 'auto_spare_multiple', - 'auto_spare_shared', 'scrub_after_resilver', 'decrypt_fault', - 'decompress_fault','zpool_status_-s'] +tests = ['auto_offline_001_pos', 'auto_online_001_pos', 'auto_replace_001_pos', + 'auto_spare_001_pos', 'auto_spare_002_pos', 'auto_spare_ashift', + 'auto_spare_multiple', 'auto_spare_shared', 'scrub_after_resilver', + 'decrypt_fault', 'decompress_fault', 'zpool_status_-s'] tags = ['functional', 'fault'] [tests/functional/features/async_destroy] -- cgit v1.2.3