zhack: Fix 'feature ref' comparison check
Signed-off-by: Ned Bass <bass6@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #3878
This commit is contained in:
parent
e3a07cd033
commit
72c407f827
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue