cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c
Dag-Erling Smorgrav
des at FreeBSD.org
Mon Aug 18 07:06:45 PDT 2003
des 2003/08/18 06:36:09 PDT
FreeBSD src repository
Modified files:
sys/fs/pseudofs pseudofs_vnops.c
Log:
Rework pfs_iterate() a bit to eliminate a bug related to process
directories. Previously, pfs_iterate() would return -1 when it
reached the end of the process list while processing a process
directory node, even if the parent directory contained further nodes
(which is the case for the linprocfs root directory, where the process
directory node is actually first in the list). With this patch,
pfs_iterate() will continue to traverse the parent directory's node
list after exhausting the process list (as was the intention all
along). The code should hopefully be easier to read as well.
While I'm here, have pfs_iterate() assert that the allproc lock is
held.
Revision Changes Path
1.38 +12 -9 src/sys/fs/pseudofs/pseudofs_vnops.c
More information about the cvs-src
mailing list