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
F168203140: D21518.id61641.diff
Wed, Aug 26, 9:09 PM
F168199095: D21518.id61647.diff
Wed, Aug 26, 8:35 PM
F168194818: D21518.diff
Wed, Aug 26, 7:57 PM
Unknown Object (File)
Sun, Aug 23, 8:53 AM
Unknown Object (File)
Thu, Aug 20, 11:17 AM
Unknown Object (File)
Wed, Aug 19, 5:21 PM
Unknown Object (File)
Wed, Aug 19, 5:16 PM
Unknown Object (File)
Wed, Aug 19, 11:03 AM
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