summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vfsops.c
AgeCommit message (Collapse)Author
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
2008-11-06use PAGE_SIZE in FS_KERNMAXFILESIZE() use, note this is not the same as ↵Theo de Raadt
getpagesize() elsewhere. otto, please fix correctly after
2008-11-02introduce a macro for max file size, instead of hardcoding it; okOtto Moerbeek
millert@
2008-09-12Remove bzero/memset calls after pool_gets by passing the PR_ZEROBret Lambert
flag to the pool_get call. ok art@, krw@
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
512) bytes; ffs is inextricably tied to using b_blkno and disklabel always uses sectorsize units. Thus use DEV_BSIZE units for all fields describing ffs filesystems and convert to/from sectors where required. This enables the creation and use of ffs filesystems on non-512 byte sectorsize devices. This diff allows i386 and sgi (the two test platforms) to find disklabels that are not on a sectorsize boundary. Same change to further archs coming. This is a no-op on 512-byte sectorsize devices. This work triggered by jsing@'s need to create ffs filesystems on sgi cdroms so we can create cdrom install media for sgi. sgi testing by jsing@ ok jsing@ pedro@ "looks sane" beck@ weingart@
2008-08-08spacing + wrap a line at 79chars.Thordur I. Bjornsson
2008-07-09Remove an XXX comment about using the same pool for mfs and ffs, sinceThordur I. Bjornsson
mfs is using the ffs code and its the same object it would make no sense having two seperate pools... ok art@
2008-03-16Widen some struct statfs fields to support large filesystem stataOtto Moerbeek
and add some to be able to support statvfs(2). Do the compat dance to provide backward compatibility. ok thib@ miod@
2008-01-05Make the ffs code 64-bit disk block number clean. Based on a diffOtto Moerbeek
from Pedro Martelleto. Two things remain: the on-disk quota structures are still 32-bit and statfs does not do 64-bit numbers yet. ok deraadt@
2007-09-10Lock the vnode in ffs_unmount() before passing it too vinvalbuf()Thordur I. Bjornsson
and VOP_CLOSE() since both of them expected it too be locked. ok art@
2007-09-07Use M_ZERO in a few more places to shave bytes from the kernel.Artur Grabowski
eyeballed and ok dlg@
2007-08-04When we're writing out the summary information and fail on some blockArtur Grabowski
we'll just randomly brelse a random block that might or might no have been the block that failed. Which wouldn't be necessary anyway since bwrite releases the block wether the write succeeded or not. And if someone won the race for that block (perfectly possible since we're sleeping in this function) we'll just release a live block under his feet. beck@ ok
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-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-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-11in ffs_reload() use ffs_validate() to check if theThordur I. Bjornsson
superblock is OK; Makes it work for FFS2. ok tedu@
2007-03-31deregister, no change in object codePedro 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.
2006-12-28Zap nextgennumber, unused since LFS went up into the attic.Thordur I. Bjornsson
ok pedro@
2006-10-20brelse() after failed bread(), from Christoph Egger, okay mickey@Pedro Martelletto
2006-08-07Revert last commitPedro Martelletto
2006-08-06obey the locking disaplince wrt to VOP_CLOSE during umountsThordur I. Bjornsson
and mount error paths. ok sturm@ pedro@
2006-06-17Refuse to mount a ffs fielsystems whose number of frags is not 1, 2, 4 or 8,Miod Vallat
and remove the corresponding panics in low level code. ok pedro@ weingart@
2006-05-20Don't mark a mount point read-only if we are about to sync it, otherwisePedro Martelletto
stuff that relies on ffs_update() to flush an inode will fail. Fixes PR 4997, okay tedu@
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2006-04-12revert the new superblock format. it violates the rule that newTed Unangst
kernels and old tools are safe. i'm leaving in the "updated" flag, so that fsck will continue to remove it from filesystems. the kernel no longer attempts to upgrade superblocks and will use the old format. post-mortem discussions have concluded that maybe jamming ffs2 fields into random locations in the superblock is asking for trouble, and we need to talk about this some more. my bad for not thinking fast enough.
2006-04-07Add and use ffs_validate(), a function for sanity checking super blocksPedro Martelletto
2006-04-01Mark FFS2 file systems with UM_UFS2Pedro Martelletto
2006-03-31FFS2 dinode pool needs to be defined here tooPedro Martelletto
2006-03-31Make ffs_statfs() tag FFS2 file systems as suchPedro Martelletto
2006-03-31ffs_statfs() should not panic on FFS2 file systemsPedro Martelletto
2006-03-31Teach ffs_vget() to allocate and associate FFS2 dinodesPedro Martelletto
2006-03-31Add a pool for FFS2 dinodesPedro Martelletto
2006-03-31Super block changes for FFS2, thanks to all who tested.Pedro Martelletto
Silent okay after almost 3 weeks, hackers@.
2006-03-09- Slightly more informative error message (requested by krw@)Pedro Martelletto
- Bring back '&& !ronly' into the conditional, so these ancient file systems can be mounted again read-only (requested by millert@)
2006-03-09Better handling of ancient file systems that still have 4.2 BSDPedro Martelletto
rotational layout tables. Okay krw@
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-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-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-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-08Use ANSI 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-09-29Sync dirty data when going from read-write to read-only.Pedro Martelletto
Verified against FreeBSD, closes PR 4526, okay deraadt@.