From 2bbec1c910a24bf61c6f41e0762e50face4b8907 Mon Sep 17 00:00:00 2001 From: Tony Hutter Date: Thu, 14 Mar 2019 18:21:53 -0700 Subject: Make zpool status counters match error events count The number of IO and checksum events should match the number of errors seen in zpool status. Previously there was a mismatch between the two counts because zpool status would only count unrecovered errors, while zpool events would get an event for *all* errors (recovered or not). This lead to situations where disks could be faulted for "too many errors", while at the same time showing zero errors in zpool status. This fixes the zpool status error counters to increment at the same times we post the error events. Reviewed-by: Tom Caputi Reviewed-by: Brian Behlendorf Reviewed-by: Olaf Faaland Signed-off-by: Tony Hutter Closes #4851 Closes #7817 --- tests/runfiles/linux.run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/runfiles') diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run index 698717335..8a3b4d4ee 100644 --- a/tests/runfiles/linux.run +++ b/tests/runfiles/linux.run @@ -344,7 +344,7 @@ tags = ['functional', 'cli_root', 'zpool_detach'] [tests/functional/cli_root/zpool_events] tests = ['zpool_events_clear', 'zpool_events_cliargs', 'zpool_events_follow', - 'zpool_events_poolname'] + 'zpool_events_poolname', 'zpool_events_errors'] tags = ['functional', 'cli_root', 'zpool_events'] [tests/functional/cli_root/zpool_expand] -- cgit v1.2.3