HomeFreeBSD

MFC r353021: simplify path handling in sysctl_try_reclaim_vnode

Description

MFC r353021: simplify path handling in sysctl_try_reclaim_vnode

MAXPATHLEN / PATH_MAX includes space for the terminating NUL, and namei
verifies the presence of the NUL. Thus there is no need to increase the
buffer size here.

The sysctl passes the string excluding the NUL, so req->newlen equal to
PATH_MAX is too long.

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS353346: MFC r353013:
Branches
Unknown
Tags
Unknown