diff options
author | Brian Behlendorf <[email protected]> | 2015-10-01 16:39:25 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-17 10:59:37 -0700 |
commit | 72c407f8272a4d534da4ecc2c374fd13a49629cc (patch) | |
tree | 44e5cf6b372da1ba13d8333336f237c7c0152f56 | |
parent | e3a07cd033920c2266a1ffdb8cfae951dfee3bf4 (diff) |
zhack: Fix 'feature ref' comparison check
Signed-off-by: Ned Bass <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #3878
-rw-r--r-- | cmd/zhack/zhack.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |