Skip to content

Commit 622b7e1

Browse files
committed
Do not allow the user to manually set compress_level
It is set atomically as part of setting `compress` when the compression type supports multiple levels. Signed-off-by: Allan Jude <allan@klarasystems.com>
1 parent 81bf2af commit 622b7e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

module/zfs/zfs_ioctl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4582,6 +4582,10 @@ zfs_check_settable(const char *dsname, nvpair_t *pair, cred_t *cr)
45824582
}
45834583
break;
45844584

4585+
case ZFS_PROP_COMPRESS_LEVEL:
4586+
return (SET_ERROR(EINVAL));
4587+
break;
4588+
45854589
case ZFS_PROP_COPIES:
45864590
if (zfs_earlier_version(dsname, SPA_VERSION_DITTO_BLOCKS))
45874591
return (SET_ERROR(ENOTSUP));

0 commit comments

Comments
 (0)