Use CTLFLAG_RDTUN for tunable sysctls.
Approved by: re (bmah)
This commit is contained in:
parent
bd35b57de2
commit
6bc581fcf0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172030
@ -155,9 +155,9 @@ u_long zfs_arc_min;
|
||||
TUNABLE_ULONG("vfs.zfs.arc_max", &zfs_arc_max);
|
||||
TUNABLE_ULONG("vfs.zfs.arc_min", &zfs_arc_min);
|
||||
SYSCTL_DECL(_vfs_zfs);
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_max, CTLFLAG_RD, &zfs_arc_max, 0,
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_max, CTLFLAG_RDTUN, &zfs_arc_max, 0,
|
||||
"Maximum ARC size");
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_min, CTLFLAG_RD, &zfs_arc_min, 0,
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_min, CTLFLAG_RDTUN, &zfs_arc_min, 0,
|
||||
"Minimum ARC size");
|
||||
|
||||
/*
|
||||
|
@ -155,9 +155,9 @@ u_long zfs_arc_min;
|
||||
TUNABLE_ULONG("vfs.zfs.arc_max", &zfs_arc_max);
|
||||
TUNABLE_ULONG("vfs.zfs.arc_min", &zfs_arc_min);
|
||||
SYSCTL_DECL(_vfs_zfs);
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_max, CTLFLAG_RD, &zfs_arc_max, 0,
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_max, CTLFLAG_RDTUN, &zfs_arc_max, 0,
|
||||
"Maximum ARC size");
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_min, CTLFLAG_RD, &zfs_arc_min, 0,
|
||||
SYSCTL_ULONG(_vfs_zfs, OID_AUTO, arc_min, CTLFLAG_RDTUN, &zfs_arc_min, 0,
|
||||
"Minimum ARC size");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user