Page MenuHomeFreeBSD

pseudofs: make readdir work without a pid again
ClosedPublic

Authored by kevans on Sep 4 2019, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 12:17 AM
Unknown Object (File)
Sat, Nov 2, 12:17 AM
Unknown Object (File)
Sat, Nov 2, 12:17 AM
Unknown Object (File)
Fri, Nov 1, 11:57 PM
Unknown Object (File)
Sep 27 2024, 9:53 AM
Unknown Object (File)
Sep 13 2024, 12:58 AM
Unknown Object (File)
Sep 4 2024, 7:35 PM
Unknown Object (File)
Sep 1 2024, 8:00 PM
Subscribers

Details

Summary

Specifically, the following was broken:

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

rS351741 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 NO_PID directory, as it's always visible.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable