summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-03-05Simplify ffs_alloccgblk() a lot by not caring about allocatingPedro Martelletto
rotationally optimal blocks. There's no point in doing that anymore. Okay beck@, marco@, tedu@ and krw@. Various testing for a while.
2006-02-14if updating supablock fails w/ EROFS just procede w/ unmount thus allowing ↵Michael Shalayeff
unmounting rw mounts on top of ro devices; pedro@ ok and comments
2006-01-20b_un.b_addr -> b_data; no functional change.Miod Vallat
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2006-01-03Add UFS2 softdep bits, okay tedu@Pedro Martelletto
2006-01-03Fix UFS2 detection by looking for the super-block at every possiblePedro Martelletto
location, testing krw@ and moritz@, thanks.
2005-12-28Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.Pedro Martelletto
No functional change, okay tedu@.
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