]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Fix format of vfs.zfs.arc_no_grow_shift
authorRyan Moeller <ryan@iXsystems.com>
Tue, 8 Dec 2020 17:21:36 +0000 (17:21 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Dec 2020 22:34:59 +0000 (14:34 -0800)
commitae2cfdf8a7494f5cd79443aff97a6a2fa846cee9
tree79ec4664e38b4c6097ee154dedaf613695889009
parent20e4513c562bdbb4fcbc0e5823a9ca14e07b5758
FreeBSD: Fix format of vfs.zfs.arc_no_grow_shift

vfs.zfs.arc_no_grow_shift has an invalid type (15) and this causes
py-sysctl to format it as a bytearray when it should be an integer.

"U" is not a valid format, it should be "I" and the type should match
the variable type, int.  We can return EINVAL if the value is set below
zero.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11318
module/os/freebsd/zfs/sysctl_os.c