summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2005-12-19Add and use a few more constants and macros needed by UFS2Pedro Martelletto
No functional change
2005-12-17Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS.Pedro Martelletto
Instead of having the dinode inside the inode structure itself, we now have just a pointer to it, and use a separate pool to allocate dinodes as needed. Inspiration from FreeBSD, various testing for a while, thanks.
2005-12-16Fix unsigned < 0 check in ext2fs_readdir(), okay krw@Pedro Martelletto
2005-12-16Fix unsigned < 0 check in ufs_readdir(), okay krw@Pedro Martelletto
2005-12-15A sanity check for an unsigned variable being < 0 after a subtractionKenneth R Westerback
is not useful. Check the value about to be subtracted. Spotted by lint. ok pedro@
2005-12-14typoPedro Martelletto
2005-12-14Make ext2fs use a memory pool to allocate inodes, okay tedu@Pedro Martelletto
2005-12-11Use e2fs_sbsave() instead of bcopy() when dumping the super-block backPedro Martelletto
to disk, fixes ext2fs on big-endian architectures
2005-12-11inode/dinode separation for ext2fsPedro Martelletto
2005-12-02Use ANSI function declarations, no binary change.Pedro Martelletto
Diff from Iruata Souza, thanks.
2005-11-30Use suser() to check for root privileges, okay hshoexer@ deraadt@Pedro Martelletto
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-15Only two `h' in threshold.Miod Vallat
2005-11-11Use ANSI function declarations and deregister, no binary change.Pedro Martelletto
Diff from Rui Reis <rui@rui.cx>, thanks.
2005-11-10Use ANSI function declarations and deregister, no binary change.Pedro Martelletto
Diff from Rui Reis <rui@rui.cx>, thanks.
2005-11-09ANSI function declarations and deregister, only ffs_softdep left to goPedro Martelletto
2005-11-09- Don't getnanotime() for read-only mountpoints or unmodified inodes,Pedro Martelletto
since we won't use that information. - Don't call getnanotime() a second time for IN_CHANGE inodes. - Space the code a bit, so it's actually readable. Testing jolan@ and krw@, okay krw@.
2005-11-08Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-11-06Use ANSI-style function declarations and deregister, no binary changePedro Martelletto
2005-11-06Replace obsolete comment with one that better describes reality.Pedro Martelletto
2005-11-05Don't go through the mountpoint vnode list if we want to skip them all.Pedro Martelletto
Based on a similar change made to NFS. Tested by many, thanks.
2005-10-25Make ffs_fserr() a macro, okay deraadt@Pedro Martelletto
2005-10-25Correctly remove elements from a pagedep dirrem list.Pedro Martelletto
Issued noted and fix okay'd by otto@.
2005-10-13pump up the high water mark on the dirhash pool to avoid page allocation ↵Michael Shalayeff
throttling; pedro@ ok
2005-10-06typoPedro Martelletto
2005-10-06Use part of the reserved space on the disk inode to scatter 16 more bitsPedro Martelletto
for the UID and GID, making them 32-bit. Based on what Linux does, with a slightly different implementation. Endianess issue in fsck noted by miod@, okay deraadt@.
2005-10-04typoPedro Martelletto
2005-09-29Sync dirty data when going from read-write to read-only.Pedro Martelletto
Verified against FreeBSD, closes PR 4526, okay deraadt@.
2005-09-26bring in two changes from freebsd:Pedro Martelletto
- keep track of free blocks dependencies, and only tell the syncer to release the blocks when there are no more dirty buffers associated - don't mark the inode dependency as done if we had to rollback its allocation due to the bitmap being inconsistent testing by krw, jsg, jmc and sturm, okay deraadt
2005-09-06Enforce splbio() while traversing the worklist inPedro Martelletto
softdep_disk_io_initiation(). Testing by dtucker@ and krw@, okay deraadt@ long ago.
2005-09-06Describe the steps involved in allocating a new inode and space the codePedro Martelletto
a bit, to improve readability. Okay krw@ and art@, input from deraadt@ and jmc@.
2005-08-14KNFPedro Martelletto
2005-08-14When leaving ext2fs_symlink(), unlock the vnode on both error andPedro Martelletto
non-error cases, so that later on we don't deadlock trying to look it up. Fixes buglet introduced in revision 1.38, okay deraadt@.
2005-08-08Add a few splassert() checks, okay art@Pedro Martelletto
2005-07-28no point in having an inode pool if we don't use itPedro Martelletto
2005-07-28KNFPedro Martelletto
2005-07-24Fix a bug introduced in rev 1.58. When relookup() is called withTodd C. Miller
SAVESTART set in cn_flags, it will add an extra reference to the directory vnode pointer, but only when () succeeds. We were doing vrele() regardless of relookup()'s return value, which caused the reference count to be decremented on error when it shouldn't be. OK pedro@ tedu@
2005-07-20Reintroduce the changes made by tedu in revision 1.50 of ffs_softdep.c,Pedro Martelletto
this time with a small tweak: when flushing the dependencies, don't update the inode twice, but update once, and then, if needed, fsync it. Doing so fixes the inode hangs some people were seeing. Various testing for a while, especially krw@ and millert@, okay deraadt@
2005-07-03Extended Attributes was a piece to get to ACLs, however ACLs have notDale Rahn
been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
2005-06-19wrap a goto label in the proper #ifdefTheo de Raadt
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-06-10Tweak softdep_change_linkcnt() so we can specify whether we're willingPedro Martelletto
to be co-opted by softdep or not, and use this new interface to inform softdep in ufs_inactive() that the inode mode has changed. We don't want to be co-opted there as that might lead to undesired circular dependencies such as a vput() depending on another vput() to complete, or a process that is trying to free up a vnode being blocked trying to acquire a new vnode. Okay tedu@ deraadt@, thanks to all those who tested.
2005-05-28Disable the recently enabled optimization since it seems to cause aArtur Grabowski
loop in the kernel that makes us overwrite the stack and anything else we might run into. beck@ pedro@ ok
2005-05-28ufs_whiteout() is now pointless, remove it, okay millert@Pedro Martelletto
2005-05-24brelse() on failed bread()Pedro Martelletto
2005-05-23re-enable softdep notification of inode mode change,Pedro Martelletto
talked over with marius@ and tedu@
2005-05-22put VLOCKSWORK stuff under a single option, VFSDEBUGPedro Martelletto
2005-05-02quadradically -> quadratically, lots ofPedro Martelletto
2005-04-30Add support for large files (> 4GB).Niall O'Higgins
Automatically converts old filesystems to use this if they are already at revision 1 (like Linux). Revision 0 filesystems don't get converted (unlike Linux). From NetBSD