Skip to content

Commit 1f565ef

Browse files
committed
Fix bug in zfs_prop_set_special() that broke setting compression
We only want to handle feature activation in the special callback, the actual property setting can still happen the normal way. Signed-off-by: Allan Jude <allanjude@freebsd.org>
1 parent 98dbf0d commit 1f565ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

module/zfs/zfs_ioctl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,6 +2484,12 @@ zfs_prop_set_special(const char *dsname, zprop_source_t source,
24842484
break;
24852485
case ZFS_PROP_COMPRESSION:
24862486
err = dsl_dataset_set_compression(dsname, source, intval);
2487+
/*
2488+
* Set err to -1 to force the zfs_set_prop_nvlist code down the
2489+
* default path to set the value in the nvlist.
2490+
*/
2491+
if (err == 0)
2492+
err = -1;
24872493
break;
24882494
case ZFS_PROP_VOLSIZE:
24892495
err = zvol_set_volsize(dsname, intval);

0 commit comments

Comments
 (0)