Skip to content

Commit

Permalink
smb_libzfs: fix check for bclone enabled (#434)
Browse files Browse the repository at this point in the history
It appears that there may be some variation between how the
feature's status is reported to userspace. Flag block cloning
as enabled if feature status is "active".
  • Loading branch information
anodos325 authored Nov 21, 2024
1 parent 59d913e commit 7f2fde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source3/modules/smb_libzfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,8 @@ smb_zfs_pool_feature_enabled(struct zfs_dataset *ds,
return false;
}

if (strcmp(statebuf, "enabled") == 0) {
if ((strcmp(statebuf, "enabled") == 0) ||
(strcmp(statebuf, "active") == 0)) {
*enabled_out = true;

} else {
Expand Down

0 comments on commit 7f2fde4

Please sign in to comment.