diff options
author | Nate Lawson <njl@FreeBSD.org> | 2002-09-14 09:02:28 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2002-09-14 09:02:28 +0000 |
commit | 06be2aaa8320ba839a837d20e35f35c3efdf7587 (patch) | |
tree | e9205d0e4985af46af0db4bd26e9662b1c25f85b /sys/fs/pseudofs/pseudofs.c | |
parent | fcfa0b48b3a9b9d6f08bf4dd6a122d2efbe3b977 (diff) | |
download | src-06be2aaa8320ba839a837d20e35f35c3efdf7587.tar.gz src-06be2aaa8320ba839a837d20e35f35c3efdf7587.zip |
Remove all use of vnode->v_tag, replacing with appropriate substitutes.
v_tag is now const char * and should only be used for debugging.
Additionally:
1. All users of VT_NTS now check vfsconf->vf_type VFCF_NETWORK
2. The user of VT_PROCFS now checks for the new flag VV_PROCDEP, which
is propagated by pseudofs to all child vnodes if the fs sets PFS_PROCDEP.
Suggested by: phk
Reviewed by: bde, rwatson (earlier version)
Notes
Notes:
svn path=/head/; revision=103314
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.c')
-rw-r--r-- | sys/fs/pseudofs/pseudofs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c index a940012be6b4..8297ef6af3f9 100644 --- a/sys/fs/pseudofs/pseudofs.c +++ b/sys/fs/pseudofs/pseudofs.c @@ -75,6 +75,9 @@ _pfs_add_node(struct pfs_node *parent, struct pfs_node *node) node->pn_parent = parent; node->pn_next = parent->pn_nodes; parent->pn_nodes = node; + /* Propagate flag to all child nodes (and thus their vnodes) */ + if ((parent->pn_flags & PFS_PROCDEP) != 0) + node->pn_flags |= PFS_PROCDEP; mtx_unlock(&parent->pn_info->pi_mutex); return (0); @@ -129,7 +132,7 @@ pfs_create_dir(struct pfs_node *parent, char *name, dir->pn_type = (flags & PFS_PROCDEP) ? pfstype_procdir : pfstype_dir; dir->pn_attr = attr; dir->pn_vis = vis; - dir->pn_flags = flags & ~PFS_PROCDEP; + dir->pn_flags = flags; if (_pfs_add_node(parent, dir) != 0) { FREE(dir, M_PFSNODES); |