summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2007-07-11Bring back the change in rev 1.70, it is safe now:Todd C. Miller
Propagate the wait flag from fsync down to softdep_fsync_mountdev() and do not perform synchronous sync there is no wait requested by skipping the drain_output() call. This fixes a problem where update kthread would sleep forever on some vnode since work is created faster than it can be flushed. OK deraadt@
2007-06-22Update ffs[1/2] time last written for cg's inThordur I. Bjornsson
clusteralloc(); From mickey; ok pedro@
2007-06-22declare "uid" as uid_t instead of u_int, and fix format string accordinglyJasper Lievisse Adriaanse
ok pedro@ thib@
2007-06-20remove an XXX comment;Thordur I. Bjornsson
Basically the reason why we dont do VOP_ABORTOP()'s in NFS is that sys_rename() actually handles the garbage collection of the pathname buffers, the calls in ufs are actually fluff too, but will be delt with later. ok pedro@
2007-06-17ansify/de-register.Jasper Lievisse Adriaanse
no binary change
2007-06-06Don't promote MNT_WAIT to MNT_NOWAIT when syncing the device vnode of aPedro Martelletto
mounted softdep file system, okay mickey@ beck@ art@
2007-06-02ufs1_daddr_t is no more, okay deraadt@Pedro Martelletto
2007-06-02ufs1_daddr_t cleanup, okay thib@ deraadt@Pedro Martelletto
2007-06-01pedro ok'd this ~3500 line diff which removes the vop argumentTheo de Raadt
"ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
2007-06-01Nuke 'ufs_lbn_t', okay otto@ deraadt@ krw@ beck@Pedro Martelletto
2007-06-01ufs_daddr_t is a dead type. growfs is the only program that uses it, yetTheo de Raadt
it is ffs1-aware only. therefore all the types are on disk, and thus, they are actually int32_t. ok pedro
2007-06-01cleanup of 'ufs1_daddr_t', first round, okay deraadt@Pedro Martelletto
2007-06-01Nuke ufs_time_t, okay beck@ krw@ marco@Pedro Martelletto
2007-06-01and don't forget the other daddr var in the commentOtto Moerbeek
2007-06-01fix struct vop_bmap_args comment. ok deraadt@Otto Moerbeek
2007-06-01revert previous comment "fix", must have been sleepingOtto Moerbeek
2007-06-01fix comment, fs_ipg is inode *blocks* per cylinder groupOtto Moerbeek
2007-06-01convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thibTheo de Raadt
2007-05-29when mount -f'ing a dirty filesystem, do not clear the unclean flag,Otto Moerbeek
the fs remains dirty. ok pedro@
2007-05-29FFS2-aware code for ffs_sbupdate() and ffs_reload().Pedro Martelletto
Okay otto@ millert@ krw@ beck@ thib@
2007-05-27use struct csum_total for superblock summary info; ok pedro@Otto Moerbeek
2007-05-26Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@Pedro Martelletto
deraadt@ dlg@.
2007-05-17Collapse struct v_selectinfo in struct vnode, remove theThordur I. Bjornsson
simplelock and reuse the name for the selinfo member. Clean-up accordingly. ok tedu@,art@
2007-05-09unused function; ok pedroTheo de Raadt
2007-05-03Update CGSIZE macro so that it is no longer based on fs_cpg.Todd C. Miller
This was part of the ffs2 changes but was not committed earlier in order to make the userland and kernel changes independent. NOTE: the change to newfs require an updated fs.h; building an updated newfs with the old fs.h may result in a broken filesystem. OK otto@
2007-04-29enforce -Wdeclaration-after-statement by handTheo de Raadt
2007-04-24Fix mounting of ffs2 via "mount -a". ffs2 is not separate from ffsTodd C. Miller
and should not have its own MOUNT_XXX define.
2007-04-23Remove 'cg_space' from 'struct cg'. Due to the alignment on 64-bitPedro Martelletto
architectures, CGSIZE() was returning something sligthly over one block. The 'new' fsck would round this value up to a fragment boundary, and end up trying to access memory beyond allocated space. From mickey@, okay pedro@, millert@ and otto@.
2007-04-20Do not use time_t for on-disk data structures, use int32_t insteadTodd C. Miller
since time_t will have to be crank to 64 bits at some point in the future. OK pedro@
2007-04-15Save block pointers contents before releasing interrupts so that panicPedro Martelletto
messages are consistent, from mickey@, okay pedro@
2007-04-13Move the declaration of VN_KNOTE() into vnode.h instead of havingThordur I. Bjornsson
multiple defines all over; ok tedu@
2007-04-11Remove the simplelock argument from vrecycle();Thordur I. Bjornsson
ok pedro@, sturm@
2007-04-11in ffs_reload() use ffs_validate() to check if theThordur I. Bjornsson
superblock is OK; Makes it work for FFS2. ok tedu@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-10Fix yet another vnode leak. If relookup() succeeds, we no longer needPedro Martelletto
the compensation acquired before ufs_checkpath(). OK tom@ mickey@ beck@
2007-04-04Back out revision 1.70. By asynchronously writing the bitmaps to diskPedro Martelletto
upon unmount, we were generating rollbacks that wouldn't be taken care of, as well as leaving dangling items in softdep's worklist.
2007-04-02vrele() the destination directory vnode in ufs_rename() if the call toPedro Martelletto
ufs_checkpath() fails, okay krw@ tom@ thib@ deraadt@
2007-03-31deregister, no change in object codePedro Martelletto
2007-03-23Make FFS allocation functions non-static, okay miod@ mk@ thib@Pedro Martelletto
2007-03-21Remove the v_interlock simplelock from the vnode structure.Thordur I. Bjornsson
Zap all calls to simple_lock/unlock() on it (those calls are #defined away though). Remove the LK_INTERLOCK from the calls to vn_lock() and cleanup the filesystems wich implement VOP_LOCK(). (by remvoing the v_interlock from there calls to lockmgr()). ok pedro@, art@, tedu@
2007-03-19Also shift superblock fields in ffs_reload(), okay beck@ deraadt@Pedro Martelletto
2007-03-19Add FFS2 fields to the superblock, change file system tools to keepPedro Martelletto
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks.
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-03-14Check if there are still blocks left to be allocated _after_ we havePedro Martelletto
read in the bitmap (an operation that might cause us to sleep), and before committing to the allocation. Fixes PR 5230, okay krw@, millert@.
2007-02-26Don't enforce RLIMIT_FSIZE on vnd(4) I/O operations, okay deraadt@Pedro Martelletto
2007-02-17do not look for sblock at offset 0; pedro@ deraadt@ okMichael Shalayeff
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-07grammar fix; from bret lambertJason McIntyre
2007-02-04Correctly fake dinode for the FFS2 case in handle_workitem_freeblocks()Pedro Martelletto
Okay millert@
2007-01-26remove ancient device-specific trick from ffs1_blkpref()Pedro Martelletto
okay toby@ millert@