aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/pseudofs
Commit message (Collapse)AuthorAgeFilesLines
* Revert "pseudofs: defer initialization until first mount"Kyle Evans2025-09-041-2/+2
| | | | | | | This reverts commit 65059dd2b6f94e570acc645be82b8ea056316459. lindebugfs does he vast majority of its pseudofs initialization nearly everywhere but pseudofs, so let's defer this to post-brsnching.
* pseudofs: defer initialization until first mountKyle Evans2025-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Currently, pseudofs all get fully constructed when the module is loaded and vfs registered, but this is pretty unnecessary. Just loading the fs doesn't mean that it will be used so we're adding overhead and risk[0] by fully initializing these at the start, along with committing resources that may not be used. Deferring pfs_init() allows us to reduce the risk of simply loading the module causing problems that are harder to avoid, and existing pseudo filesystems don't really care: configuration that is context-sensitive is generally deferred to access-time with PFS_PROCDEP. To preserve symmetry, we'll also teardown our pseudofs on last unmount, which leaves us with a vfs_uninit() implementation that simply destroys our lock and prints a message. [0] Example of such being recent bugs in linsysfs, which caused a panic as soon as the module was loaded because we're eager to set it up. Reviewed by: des (previous version), kib Differential Revision: https://reviews.freebsd.org/D52156
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Fix some modules to export more used symbolsKonstantin Belousov2021-11-181-3/+2
| | | | | | | | | and remove non-present symbols that are now reported by kmod_syms.awk. Reviewed by: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32878
* sys/modules: normalize .CURDIR-relative paths to SRCTOPEnji Cooper2017-03-041-1/+1
| | | | | | | | | | | This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314651
* Hide vfs.pfs.trace variable if it is not used.Dmitry Chagin2015-05-241-0/+6
| | | | Notes: svn path=/head/; revision=283495
* Remove opt_mac.h generation for various kernel modules that no longerRobert Watson2009-06-061-2/+1
| | | | | | | | | require it. Submitted by: pjd Notes: svn path=/head/; revision=193588
* Add PSEUDOFS_TRACE option.Dag-Erling Smørgrav2005-03-141-0/+1
| | | | Notes: svn path=/head/; revision=143594
* Introduce support for Mandatory Access Control and extensibleRobert Watson2002-08-011-1/+2
| | | | | | | | | | | | | | | | | | kernel access control. Modify pseudofs so that it can support synthetic file systems with the multilabel flag set. In particular, implement vop_refreshlabel() as pn_refreshlabel(). Implement pfs_refreshlabel() to invoke this, and have it fall back to the mount label if the file system does not implement pn_refreshlabel() for the node. Otherwise, permit the file system to determine how the service is provided. Approved by: des Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101130
* Move the pseudofs, procfs and linprocfs modules out from the fs directory.Dag-Erling Smørgrav2002-02-041-0/+25
Keeping them there seemed like a good idea at the time, but it annoys bde and confuses people who do not understand how MODULES_OVERRIDE works. Notes: svn path=/head/; revision=90223