From 72c407f8272a4d534da4ecc2c374fd13a49629cc Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 1 Oct 2015 16:39:25 -0700 Subject: [PATCH] zhack: Fix 'feature ref' comparison check Signed-off-by: Ned Bass Signed-off-by: Brian Behlendorf Issue #3878 --- cmd/zhack/zhack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zhack/zhack.c b/cmd/zhack/zhack.c index a7da371c8..eedd17c30 100644 --- a/cmd/zhack/zhack.c +++ b/cmd/zhack/zhack.c @@ -464,7 +464,7 @@ zhack_do_feature_ref(int argc, char **argv) if (decr) { uint64_t count; if (feature_get_refcount_from_disk(spa, &feature, - &count) == 0 && count != 0) { + &count) == 0 && count == 0) { fatal(spa, FTAG, "feature refcount already 0: %s", feature.fi_guid); }