summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2002-06-08Remove this horror DIAGNOSTIC define. It was just ugly when itArtur Grabowski
was introduced, but now it causes crashes when kernels are built without DIAGNOSTIC. Instead of trying to debug this incorrect code, I'm just removing this abomination.
2002-06-08Let this build when the internal DIAGNOSTIC define is removed.Artur Grabowski
2002-06-06compatibilty -> compatibilityAaron Campbell
2002-05-23protect biodone calls with splbio.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-05-01Sync EA with FreeBSD, mostly addition of new ENOATTR errno.Dale Rahn
ok millert@, art@
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-31EA: unlock if attribute node not found. Prevents hangs when compiledDale Rahn
with UFS_EXTATTR_AUTOSTART. thanks dlucq. ok deraadt@
2002-03-30RCSIdNiklas Hallqvist
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-12Credentials now freed on re-use of dq structure.Constantine Sapuntzakis
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2002-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
2002-02-20Don't rely on vp for anything in dqsync as it can be nullConstantine Sapuntzakis
2002-02-18fix possible panic on reboot for mfs mounted fs.Eric Jackson
fix from NetBSD pr#1693 art@ OK
2002-01-29process the delayed-free queue more often; chs@netbsd.orgTodd C. Miller
2002-01-25Move softdep sysctls from debug to vfs.ffs; art@ OKTodd C. Miller
2002-01-24sigh, nobody compiles before commit anymoreMichael Shalayeff
2002-01-23Convert to pool; based on changes NetBSDTodd C. Miller
We no longer use the last arg to WORKITEM_FREE but I have not removed it from the calls in order to simplify these diffs and further softdep merges.
2002-01-23minor cleanup I just happened to do when in this area.Artur Grabowski
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2002-01-09If a write(2) is done with a length of zero bytes, short-circuit and do notThorsten Lockert
update the modification time -- required by POSIX. ok millert@ drahn@
2002-01-04Handle truncation to the middle of a file hole. deraadt@ okThomas Nordin
From FreeBSD
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-10Big cleanup inspired by NetBSD with some parts of the code from NetBSD.Artur Grabowski
- get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap
2001-12-10Remove LFS crud.Artur Grabowski
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
2001-12-05Make DEBUG not default, and make the default compileNiklas Hallqvist
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-12-04FREE_LOCK_INTERLOCKED drops the lock owner without changing lock "state".Artur Grabowski
ACQUIRE_LOCK_INTERLOCKED set the owner back without validating that the state is ok. This could lead to changed states and FREE_LOCK could set spl to any random value. Try to preserve the state of the lock. XXX - all this locking in the code is insane. all this debugging code breaks stuff.
2001-12-01KNFTheo de Raadt
2001-11-30Don't brelse a random pointer in ffs_realloccg when filesystem is fullArtur Grabowski
and bpp == NULL.
2001-11-30Fix a mergeo and don't truncate a 0 length file when freeing it.Artur Grabowski
2001-11-28Bug fixes from NetBSD.Artur Grabowski
In flush_inodedep_deps - release the lock before sleep. When allocating a pagecache dependency buffer - make sure it's always correctly initialized.
2001-11-28Bunch of bug fixes from NetBSD.Artur Grabowski
2001-11-27Merge in the unified buffer cache code as found in NetBSD 2001/03/10. TheArtur Grabowski
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
2001-11-22Changes to allow two partitions to share a quota fileConstantine Sapuntzakis
2001-11-21Added sanity checksConstantine Sapuntzakis
2001-11-21Use vfs_mount_foreach_vnodeConstantine Sapuntzakis
2001-11-21Don't use #define QUOTA - use stub file insteadConstantine Sapuntzakis
Pass over the quota code in ufs/. Make code paths clearer. Clean up some names. Move all code that manipulates quotas directly into ufs_quota.c Use vfs_mount_foreach_vnode to traverse list of vnodes in mountpoint.
2001-11-15Missed one place to check for bpp == NULLArtur Grabowski
2001-11-13Allow balloc to get NULL for bpp. Don't get the buffer in that case.Artur Grabowski
2001-11-13Add two controlled panics instead of some code that I need to write later.Artur Grabowski
2001-11-13Allow the bpp arguemnt on ffs_realloccg to be NULL, don't return theArtur Grabowski
buffer in that case. Also add a new argument - blknop, which can be used to return the allocated blkno.
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-10-09Fix comparison when start_lvl == 0Constantine Sapuntzakis
2001-09-18Don't include sys/systm.h if not _KERNEL.Artur Grabowski
2001-09-18move ext2fs_init to where it belongs.Artur Grabowski