summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2003-08-26constify ffs_tablesMichael Shalayeff
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-08-02newline at end of printfTed Unangst
2003-07-10in statfs, cast disk size to int64_t to prevent overflow on large disks.Ted Unangst
from Peter Galbavy
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-26add prototypes for userland code that reaches over. ok deraadt@Ted Unangst
2003-06-10o make mount(2) return EROFS, not EPERM if ffs is dirtyTodd C. Miller
o document EROFS in man page (2 possible causes) o recognize EROFS in mount_ffs and try to give a reasonable error message deraadt@ OK
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-05-14remove the last of the MI commonsJason Wright
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@
2003-03-10fix really old typo that prevented inode quotas from ever working.Ted Unangst
help testing and eyeballing henric tdeval miod ok costa deraadt
2003-02-19intial -> initialJason McIntyre
2003-02-12Remove commons; inspired by netbsd.Jason Wright
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-12-22Flargs -> Flags.Artur Grabowski
Reported by Dave Steinberg <lists@redterror.net>
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-13Remove more '\n's from panic() statements. From Chris Kuethe.Kenneth R Westerback
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-09-06no, make INITQFNAMES without a terminal ;Theo de Raadt
2002-09-06no , at end of enumTheo de Raadt
2002-08-02More possible int overflows found by Silvio Cesare.Todd C. Miller
ibcs2_stat.c one OK by provos@
2002-08-01Limit max file size based on PAGE_SIZE. Even though ffs can handleTodd C. Miller
files up to 16TB, we do limit the max file to 2^31 pages to prevent overflow of a 32-bit unsigned int. The buffer cache has its own checks but a little added paranoia never hurts. Adapted from a patch in FreeBSD.
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-07-16Fix typo which prevents diagnostic test from working; enami@netbsd.orgTodd C. Miller
Fix two problems with softdep_typenames (missing entry, wrong boundary check); wiz@netbsd.org art@ OK
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-23uid_t and gid_t are unsignedTheo de Raadt
2002-06-21Remove pointless macro.Artur Grabowski
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