diff --git a/cmd/zhack/zhack.c b/cmd/zhack/zhack.c index a7da371c8a..eedd17c307 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); }