Skip to content

Commit

Permalink
Fix 'zhack feature ref' comparison check
Browse files Browse the repository at this point in the history
  • Loading branch information
behlendorf committed Nov 3, 2015
1 parent 291b06c commit 2d82134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zhack/zhack.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,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);
}
Expand Down

0 comments on commit 2d82134

Please sign in to comment.