summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs
AgeCommit message (Collapse)Author
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-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. few other little cleanups. help testing otto@ and markus@
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-08-11if we run out of space, make the dead vnode VNON. if a VBLK gets out, itTed Unangst
causes trouble later. netbsd pr22419
2003-07-06remove ext2fs_vinit. it wasn't used and is identical to ufs_vinit.Ted Unangst
otto made the diff for me, thanks.
2003-07-06reset inode fields if deleted, prevents a panic after deleting a device.Ted Unangst
from netbsd via otto moerbeek
2003-07-06fix off by one. inodes start at 1, so e2fs_icount is a valid inode number.Ted Unangst
from otto moerbeek
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-26fiddle with some type names. change most instances of ufs_daddr_t toTed Unangst
ufs1_daddr_t, a few to daddr_t. ufs_daddr_t typedef is retained, but consider it deprecated. no functional changes. inspired by freebsd. ok art@
2003-01-31File system locking fixups, mostly from NetBSD:Artur Grabowski
- cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
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-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-07-29Fix two off-by-one errors when sanity-checking inode numbers. InFederico G. Schwindt
ext2fs, inode numbers start at 1, so the maximum valid inode number is (s_inodes_per_group * s_groups_count), not one less. From FreeBSD. costa@ ok.
2002-07-29add 2 flags from ext3. useful to help you diagnose problems.Federico G. Schwindt
2002-07-28optionnal -> optional.Federico G. Schwindt
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-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-02-22Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@Dale Rahn
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@
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-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
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-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-21Use vfs_mount_foreach_vnodeConstantine Sapuntzakis
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-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-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-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-05-24- fix pr 1548: Cannot set arbitrary atime/mtime on ext2fs volumejasoni
- checked by gluk@
2001-04-06Free the right variable on errorConstantine Sapuntzakis
2001-03-25Free the right variable. Thanks to Dawson and team.Constantine Sapuntzakis