From a8d7162d8bace5d8925c917868d53a0dd7650bc8 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Wed, 20 Nov 2024 07:00:22 -0600 Subject: [PATCH] smb_libzfs: fix check for bclone enabled 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". --- source3/modules/smb_libzfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/modules/smb_libzfs.c b/source3/modules/smb_libzfs.c index 770d090439e..ab8e8625055 100644 --- a/source3/modules/smb_libzfs.c +++ b/source3/modules/smb_libzfs.c @@ -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 {