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
F167633572: D21518.id61641.diff
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
Unknown Object (File)
Wed, Aug 19, 7:34 AM
Unknown Object (File)
Wed, Aug 19, 2:19 AM
Unknown Object (File)
Tue, Aug 18, 4:22 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