freebsd-dev/sys/fs/pseudofs
Kyle Evans f99c5e8d28 pseudofs: make readdir work without a pid again
Specifically, the following was broken:

$ mount -t procfs procfs /proc
$ ls -l /proc

r351741 reworked readdir slightly to avoid pfs_node/pidhash LOR, but
inadvertently regressed pid == NO_PID; new pfs_lookup_proc() fails for the
obvious reasons, and later pfs_visible_proc doesn't capture the
pid == NO_PID -> return 1 aspect of pfs_visible. We can infact skip this
whole block if we're operating on a directory w/ NO_PID, as it's always
visible.

Reported by:	trasz
Reviewed by:	mjg
Differential Revision:	https://reviews.freebsd.org/D21518
2019-09-04 14:20:39 +00:00
..
pseudofs_fileno.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
pseudofs_internal.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
pseudofs_vncache.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
pseudofs_vnops.c pseudofs: make readdir work without a pid again 2019-09-04 14:20:39 +00:00
pseudofs.c PFS: Bump NAMELEN and don't require clients to be sleepable 2019-02-20 20:55:02 +00:00
pseudofs.h PFS: Bump NAMELEN and don't require clients to be sleepable 2019-02-20 20:55:02 +00:00