summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.c
AgeCommit message (Collapse)Author
2000-09-27Minimal optimization.Artur Grabowski
2000-07-17Don't wait for B_READ buffers on shutdown.Artur Grabowski
From NetBSD.
2000-04-25Use CIRCLEQ_FOREACHConstantine Sapuntzakis
2000-04-21see if there is any meaning under curproc before using &proc0 in ↵Michael Shalayeff
vfs_syncwait(); from art@
1999-12-05With soft updates, some buffers will be remarked as dirty after being written.Artur Grabowski
Handle this when syncing filesystems when unmounting. From NetBSD.
1999-12-05Use VONSYNCLIST to see if we should remove a vnode from the sync list insteadArtur Grabowski
of looking at v_dirtyblkhd.
1999-08-20more paranoid check of the refcount in vfs_registerArtur Grabowski
1999-08-08From NetBSD; vdevgone, used for revoking access to device nodes when theyNiklas Hallqvist
disappear (detach is coming).
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
1999-05-06factor out sync+wait code into vfa_syncwait() routine forMichael Shalayeff
applications in system like power management and such. art@ finally said `commit it'
1999-04-30in vput, simple_unlock the v_interlock before VOP_INACTIVE, not afterArtur Grabowski
1999-03-11backoutTheo de Raadt
1999-03-11back out unapproved changesTheo de Raadt
1999-03-11indentMichael Shalayeff
1999-03-11factor sync+wait operation out into a separate function.Michael Shalayeff
1999-02-26adapt to uvm vnode pagerArtur Grabowski
1999-02-19add vfs_register and vfs_unregister functionsArtur Grabowski
1998-12-28simple_lock fixesArtur Grabowski
1998-12-22deconfuse vprint, print holdcount, not refcount when we are talking about ↵Artur Grabowski
holdcnt
1998-12-10vfs_unmountall: retry to unmount all remaining filesystems when one unmount ↵Artur Grabowski
failed
1998-12-05Framework for generating automatic test code for locking disciplineConstantine Sapuntzakis
in DIAGNOSTIC mode. Added documentation to vfs_subr.c on locking needs of a couple calls. Improvements to the vinvalbuf patch. We need to start over after we let our pants down.
1998-12-04VFS-Lite2 requires stricter locking around vnode buffer queues. vinvalbufConstantine Sapuntzakis
had insufficient protection
1998-11-20vn_lock already unlocks the simple lock. don't do that againArtur Grabowski
1998-11-12Integrate latest soft updates patches for McKusick.Constantine Sapuntzakis
Integrate cleaner ffs mount code from FreeBSD. Most notably, this mount code prevents you from mounting an unclean file system read-write.
1998-10-13In vrele, vget, reinstate to following orderConstantine Sapuntzakis
- VNODE gets placed on free list - VOP_INACTIVE is called This was the original order. It was changed in an earlier patch due to a race condition in non-locking FSes (like NFS) between getnewvnode and inactive. However, the modified order had its own race conditions, so it turned out not to be a good choice.
1998-08-30Cleanup.Constantine Sapuntzakis
Error diagnostics in vputonfreelist to catch violations of assumptions.
1998-08-06Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockConstantine Sapuntzakis
to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked, vop_generic_lock and vop_generic_unlock. Create vop_generic_abortop and propogate change to all file systems. Fix PR/371. Get rid of locking in NULLFS (should be mostly unnecessary now except for forced unmounts).
1998-04-25typoNiklas Hallqvist
1998-02-20typoNiklas Hallqvist
1998-01-11Fix a couple spinlock references. More code motion in vfs_subr.cConstantine Sapuntzakis
1998-01-10Broke up vfs_subr.c which was getting a bit huge. We now have seperate filesConstantine Sapuntzakis
for the syncer daemon as well as default VOP_*.
1997-11-24Fix non-DIAGNOSTIC (and non-COMPAT*) compilationNiklas Hallqvist
1997-11-07Fixed hang on shutdownConstantine Sapuntzakis
Disabled vop_nolock for now. Filesystems still need to be cleaned up.
1997-11-06DEBUG now compilesConstantine Sapuntzakis
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-04-25proper mask check; mike@fast.cs.utah.eduTheo de Raadt
1997-04-14Minor performance enhancements from NetBSDThorsten Lockert
1997-02-24OpenBSD tagsNiklas Hallqvist
1997-02-11Add fs_id support and random inode generation numbers for ffs.Todd C. Miller
1997-01-04spec_advlock() via lf_advlock()kstailey
1996-08-08Make {,f}chown(2) behaviour POSIX.1 compliant with SUID / SGID filesThorsten Lockert
Enable CTL_FS processing by sysctl(3) Add CTL_FS request to disable clearing SUID / SGID bit when a files owner or group is changed by root Make sysctl(8) understand CTL_FS requests
1996-05-02sync syscalls, no sys/cpu.hTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-02-29From NetBSD: Merge with NetBSD 960217Niklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt