summaryrefslogtreecommitdiff
path: root/sys/ufs/mfs
AgeCommit message (Collapse)Author
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-11revert part of previous. if mfs gets a signal, it doesn't attempt toTed Unangst
force the unmount, so there's no need to mess with resetting processes' working dirs.
2003-05-06attempt to put a process's cwd back in place after a forced umount.Ted Unangst
won't always work, but it's the best we can do for now. this covers at least some of the failure cases the previous commit to vfs_lookup.c checks for. ok weingart@
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-06-21Remove pointless macro.Artur Grabowski
2002-05-13Protect calls to biodone with splbio.Artur Grabowski
I'm not completly sure it's needed, but better safe than sorry. And this simplifies some spl assertions in the still not comitted splassert code.
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-14First round of __P removal in sysTodd C. Miller
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2002-02-18fix possible panic on reboot for mfs mounted fs.Eric Jackson
fix from NetBSD pr#1693 art@ OK
2002-01-23minor cleanup I just happened to do when in this area.Artur Grabowski
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-12-04Readd VOP_MMAP, will be used soon. Right now it's just a question toArtur Grabowski
the filesystem if we're allowed to mmap the file.
2001-07-05makedev is a macro. Admittedly, it's not function-like at all,Marc Espie
and should probably be spelled MAKEDEV to not trip people.
2001-06-23Privatize several vnode operations that are not used by the generic code.Constantine Sapuntzakis
2001-04-12Allow kernels with just MFS and no FFS. Fixes PR#323.Constantine Sapuntzakis
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2000-02-08prevent a panic when suspending on an idle systemNiklas Hallqvist
2000-02-07update to use new checkexp vfs operationassar
1999-12-06Yet another solution to the mfs unmount/kill race (not ugly this time).Artur Grabowski
Require that the mount point is vfs_busy on entry to dounmount.
1999-10-15Yet another unmount/kill race. (I hate this)Artur Grabowski
1999-09-03Horrible workaround for hanging mount_mfs processes that received a signal.Artur Grabowski
After finding the third deadlock during dounmount, I decided that it would be less painful to let the unmounting be handled with a separate thread. XXX - this is a kludge.
1999-08-30Kill mfsiom.h. We are not using anything from it.Artur Grabowski
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-03-17If an mfs io is successful set b_resid to 0.Artur Grabowski
From Chuck Silvers <chs@netbsd>.
1999-03-09workaround deadlocks in the unmount/kill mount_mfs race.Artur Grabowski
XXX - This is wrong. I have to rethink this/rewrite mfs.
1999-01-22I'm stupid. Fix a panic when not DIAGNOSTIC.Artur Grabowski
1999-01-12fixed unused variable warnings when DIAGNOSTIC not definedTodd C. Miller
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1999-01-10fix panic messages and put some code in DIAGNOSTICArtur Grabowski
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-02-08Updates to match type changes in syscall tablesThorsten Lockert
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-02-24OpenBSD tagsNiklas Hallqvist
1996-06-11Kernel-implementation of update(8) my meThorsten Lockert
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-19NetBSD 960317 mergeNiklas Hallqvist
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt