HomeFreeBSD

Add a custom VOP_PATHCONF method for fdescfs.

Description

Add a custom VOP_PATHCONF method for fdescfs.

The method handles NAME_MAX and LINK_MAX explicitly. For all other
pathconf variables, the method passes the request down to the underlying
file descriptor. This requires splitting a kern_fpathconf() syscallsubr
routine out of sys_fpathconf(). Also, to avoid lock order reversals with
vnode locks, the fdescfs vnode is unlocked around the call to
kern_fpathconf(), but with the usecount of the vnode bumped.

MFC after: 1 month
Sponsored by: Chelsio Communications

Details

Provenance
jhbAuthored on
Parents
rS326985: Add byte swapping in bnxt_cfg_async_cr() request
Branches
Unknown
Tags
Unknown