]> git.proxmox.com Git - mirror_zfs.git/commit
arc_summary: Make get_descriptions per platform
authorRyan Moeller <ryan@iXsystems.com>
Fri, 28 Feb 2020 01:15:06 +0000 (20:15 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 01:15:06 +0000 (17:15 -0800)
commit2ce90dca91a991592da48c52332326ae4bb25b69
tree71a970f07967e52f5b79aca669631a4e1f700e4e
parent276410387ef40e2c9659729ad6813a2dea3b3aae
arc_summary: Make get_descriptions per platform

Linux uses modinfo to get tunables descriptions, FreeBSD has to use
sysctl.

Move the existing function definition so it is defined that way on
Linux, and add a definition in terms of sysctl for FreeBSD.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10062
cmd/arc_summary/arc_summary3