summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
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
2001-09-18various cleanups from NetBSDArtur Grabowski
2001-09-18More of cleanups, reliability and endianness fixes from NetBSD.Artur Grabowski
2001-09-18cleanArtur Grabowski
2001-09-18Reorder includes. (ext2fs_extern.h needs ufs/inode.h)Artur Grabowski
2001-09-18cosmetic fixes from NetBSDArtur Grabowski
2001-09-18cosmetic and endianness fixes from NetBSDArtur Grabowski
2001-09-18More cleanups from NetBSD and a bunch of endianness fixes.Artur Grabowski
The file ext2fs_bswap.c contains some functions to aid bigendian machines.
2001-09-17Some changes from NetBSD. Some cosmetic, some endianness fixes.Artur Grabowski
Plus the unwinding code that undoes allocation if a part of it fails originally from ufs and FreeBSD.
2001-09-17Cleanups. Mostly from NetBSD.Artur Grabowski
2001-09-10Mark buffers with dependencies as B_DEFERRED and skip them one timeGrigoriy Orlov
when doing sync. From FreeBSD. art@ ok.
2001-09-05use %ll instead of %qTheo de Raadt
2001-08-19More old timeouts removal, mainly affected unused/unmaintained code.Miod Vallat
2001-08-12vm_extern.h no moreMichael Shalayeff
2001-07-26Back out changes to symlink and mknod that were not well tested.Todd C. Miller
A simple mknod at causes a kernel panic (uvm_fault).
2001-07-26change vop_symlink and vop_mknod to return vpp (the created node)assar
refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations ok'd by art
2001-07-16Make truncating a device a no-op instead of returning an error. We canConstantine Sapuntzakis
fix the rest of the kernel some other time.
2001-07-16Don't try to truncate anything except for symlinks, directories, andConstantine Sapuntzakis
regular files. ftruncate and truncate that go through FFS/EXT2FS/MFS will now return EINVAL when done on devices. Bug introduced when VOP_TRUNCATE was removed, thus removing spec_truncate. Thanks to millert@ for tracking this one down.
2001-07-06prototypes for userland sideTheo de Raadt
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-07-04Move the declaration of inode_vtbl to after the inode declarationAngelos D. Keromytis
itself -- gets rid of some compilation warnings in userland. ok csapuntz@
2001-06-27Remove old vm.Artur Grabowski
2001-06-23Privatize several vnode operations that are not used by the generic code.Constantine Sapuntzakis
2001-06-05make kqueue work on ext2fsNiels Provos
2001-06-04make kqueue behave like select when testing for write instead of bailingNiels Provos
out.
2001-05-24- fix pr 1548: Cannot set arbitrary atime/mtime on ext2fs volumejasoni
- checked by gluk@
2001-05-15Correct memory type for free(). (art@ ok)Hakan Olsson
2001-04-25Quick fix for code path in RENAME in case relookup doesn't find the file againConstantine Sapuntzakis
Also, get rid of a bogus comment. Patch from art@
2001-04-22Free fs->fs_contigdirs array only on successful rw->ro update. ThisGrigoriy Orlov
fixes "duplicated free" panic. Update file system from read-write to read-only freed memory but may fail later if file system busy. deraadt@ ok.
2001-04-19Cleanup dirpref and synhronize superblock with freebsd.Grigoriy Orlov
From FreeBSD with little changes. art@ ok.
2001-04-15Avoid panic on unmounting read-only fs, which previously use softupdates.Grigoriy Orlov
This problem occur only on kernels without soft-updates support. art@ ok.
2001-04-13Fix overflow in superblock. From FreeBSD.Grigoriy Orlov
FreeBSD's log: > The ffs superblock includes a 128-byte region for use by temporary > in-core pointers to summary information. An array in this region > (fs_csp) could overflow on filesystems with a very large number of > cylinder groups (~16000 on i386 with 8k blocks). When this happens, > other fields in the superblock get corrupted, and fsck refuses to > check the filesystem. > > Solve this problem by replacing the fs_csp array in 'struct fs' > with a single pointer, and add padding to keep the length of the > 128-byte region fixed. Update the kernel and userland utilities > to use just this single pointer. > > With this change, the kernel no longer makes use of the superblock > fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c > to indicate that these fields must be calculated for compatibility > with older kernels. art@ ok.
2001-04-12Allow kernels with just MFS and no FFS. Fixes PR#323.Constantine Sapuntzakis
2001-04-07Reduce the count of fs_sparecon's by 1 for 64 bit architecturesTodd C. Miller
since fs_contigdirs takes 64 bits on those platforms. This fixes a problem on alpha where "struct fs" grew. A better solution is to make fs_csp into a pointer and use the remainder for pointer spares and allocate fs_contigdirs from those. This will happen some time post-2.9.