summaryrefslogtreecommitdiff
path: root/sys/ufs/lfs
AgeCommit message (Collapse)Author
2004-06-04rootvp is already externed in systm.h, no need for a local externTed Unangst
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-02-19intial -> initialJason McIntyre
2002-11-08Implement simple vnodeop inheritance for specfs and fifofs.Artur Grabowski
The inheritace is implemented by setting the default vnodeop to a bypass op that repeats the operation on the spec/fifo vnodeop vector. The overhead of one extra indirect function call is worth the cleanup and improved correctness. This actually solves a few bugs where some vnode ops were missing from some vectors (like kqfilter or revoke). (and even more on the ubc branch). Inspired by the same thing done in FreeBSD.
2002-08-02More possible int overflows found by Silvio Cesare.Todd C. Miller
ibcs2_stat.c one OK by provos@
2002-07-12Change the locking on the mountpoint slightly. Instead of using mnt_lockArtur Grabowski
to get shared locks for lookup and get the exclusive lock only with LK_DRAIN on unmount and do the real exclusive locking with flags in mnt_flags, we now use shared locks for lookup and an exclusive lock for unmount. This is accomplished by slightly changing the semantics of vfs_busy. Old vfs_busy behavior: - with LK_NOWAIT set in flags, a shared lock was obtained if the mountpoint wasn't being unmounted, otherwise we just returned an error. - with no flags, a shared lock was obtained if the mountpoint was being unmounted, otherwise we slept until the unmount was done and returned an error. LK_NOWAIT was used for sync(2) and some statistics code where it isn't really critical that we get the correct results. 0 was used in fchdir and lookup where it's critical that we get the right directory vnode for the filesystem root. After this change vfs_busy keeps the same behavior for no flags and LK_NOWAIT. But if some other flags are passed into it, they are passed directly into lockmgr (actually LK_SLEEPFAIL is always added to those flags because if we sleep for the lock, that means someone was holding the exclusive lock and the exclusive lock is only held when the filesystem is being unmounted. More changes: dounmount must now be called with the exclusive lock held. (before this the caller was supposed to hold the vfs_busy lock, but that wasn't always true). Zap some (now) unused mount flags. And the highlight of this change: Add some vfs_busy calls to match some vfs_unbusy calls, especially in sys_mount. (lockmgr doesn't detect the case where we release a lock noone holds (it will do that soon)). If you've seen hangs on reboot with mfs this should solve it (I repeat this for the fourth time now, but this time I spent two months fixing and redesigning this and reading the code so this time I must have gotten this right).
2002-04-23In mount.h, rename field export -> export_info, to avoid collision with C++.Marc Espie
Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-08-19More old timeouts removal, mainly affected unused/unmaintained code.Miod Vallat
2001-08-12vm_extern.h no moreMichael Shalayeff
2001-02-23Change the B_DELWRI flag using buf_dirty and buf_undirty instead ofConstantine Sapuntzakis
manually twiddling it. This allows the buffer cache to more easily keep track of dirty buffers and decide when it is appropriate to speed up the syncer. Insipired by FreeBSD. Look over by art@
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2000-02-07update to use new checkexp vfs operationassar
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-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-06-20Change errno cause by mounting invalid filesystems from EINVAL to EFTYPE.kstailey
1997-05-30Integrate new ext2fs, reverting ufs support for the old one.Jason Downs
1997-03-02Add noatime option to not update atime on files in a filesystem (unlessTodd C. Miller
ctime or mtime has changed). Useful for laptops and news servers.
1997-02-24OpenBSD tagsNiklas Hallqvist
1996-10-18-Wall happienessMichael Shalayeff
1996-07-21Ensure we never use more than one callout table slotThorsten Lockert
1996-07-01fix padding for struct lfs, formating fix.Jason Downs
1996-07-01New LFS, based on Lite2. Still being worked on.Jason Downs
1996-06-27Moving some things around; struct inode still ends up bigger, though.Jason Downs
This should, hopefully, be the last UFS changes required.
1996-06-24ufs changes: add the notion of directory operators.Jason Downs
gnu/ext2fs: add the second extended filesystem. Note that I'm commiting this now for the sake of the ufs changes; ext2fs is not yet fully integrated into the system.
1996-06-14Keep dirty list used by in-kernel update(8) in sync with buffersThorsten Lockert
1996-05-22Change VOP_UPDATE() semantics:Theo de Raadt
* Make 2nd and 3rd args timespecs, not timevals. * Consistently pass a Boolean as the 4th arg (except in LFS). Also, fix ffs_update() and lfs_update() to actually change the nsec fields.
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-03-19Merging w/ NetBSD 021796.Michael Shalayeff
speaker upgraded to the current. some changes to the VM stuff (ie kern_thread.c added and so).
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt