HomeFreeBSD

Escape any '.' characters in sysctl node names

Description

Escape any '.' characters in sysctl node names

ZFS creates some sysctl nodes that include a pool name, and '.' is an
allowed character in pool names. But it's the separator in the sysctl
tree, so it can't be included in a sysctl name. Replace it with "%25".
Handily, "%" is illegal in ZFS pool names, so there's no ambiguity
there.

PR: 257316
Sponsored by: Axcient
Reviewed by: freqlabs
Differential Revision: https://reviews.freebsd.org/D31265

(cherry picked from commit 6c9506559080da2914749bf611225d7c0a153609)

Details

Provenance
asomersAuthored on Jul 21 2021, 9:11 PM
Reviewer
freqlabs
Differential Revision
D31265: Escape any '.' characters in sysctl node names
Parents
rG108633bb1556: diff: Use unprivileged_user with report_identical test
Branches
Unknown
Tags
Unknown