summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_subr.c
Commit message (Collapse)AuthorAgeFilesLines
* I forgot this bit of uglyness in the fsck_ffs cleanup.phk2002-07-311-0/+1
|
* Move ffs_isfreeblock() to ffs_alloc.c and make it static.phk2002-07-301-25/+0
| | | | Sponsored by: DARPA & NAI Labs.
* Warning fixes for 64 bits platforms. This eliminates all themux2002-06-231-1/+1
| | | | | | warnings I have had in the FFS code on sparc64. Reviewed by: mckusick
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-11/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Remove register keyword.phk2002-05-131-5/+5
| | | | | Sponsored by: DARPA & NAI Labs. Submitted by: mckusick
* Remove __P.alfred2002-03-191-1/+1
|
* Remove blatantly pointless call to VOP_BMAP().phk2001-05-011-5/+1
| | | | Use ufs_bmaparray() rather than VOP_BMAP() on our own vnodes.
* Fixes to track snapshot copy-on-write checking in the specinfomckusick2001-03-071-0/+2
| | | | | | structure rather than assuming that the device vnode would reside in the FFS filesystem (which is obviously a broken assumption with the device filesystem).
* Separate the struct bio related stuff out of <sys/buf.h> intophk2000-05-051-0/+1
| | | | | | | | | | | | | | | <sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-1/+1
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Silence warning about unused debug function. (I'll turn this functioneivind1999-01-121-3/+3
| | | | into a DDB command in my next staticization sweep).
* Don't use the strange null pointer constant `(ufs_daddr_t)0' in a callbde1998-11-291-3/+3
| | | | to VOP_BMAP(). Don't use uncast NULLs in the same call.
* Moved some #includes from <sys/param.h> nearer to where they are actuallybde1998-03-281-1/+3
| | | | used.
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-081-1/+25
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* Removed unnecessary dependencies on KERNEL and DIAGNOSTIC. This wasbde1998-02-131-4/+4
| | | | more useful when opt_diagnostic.h had to be included.
* Back out DIAGNOSTIC changes.eivind1998-02-061-3/+1
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-1/+3
|
* Don't include <sys/lock.h> in headers when only `struct simplelock' isbde1997-12-051-1/+2
| | | | required. Fixed everything that depended on the pollution.
* Staticized.bde1997-11-221-2/+6
|
* Removed an unused #include in the `#ifdef KERNEL' case.bde1997-11-181-5/+3
| | | | | | Fixed a comment to match the code. The code is still wrong (ffs_checkoverlap() should be staticized and called from a ddb command).
* VFS mega cleanup commit (x/N)phk1997-10-161-15/+13
| | | | | | | | | | | | | | | | | | | | | | | 1. Add new file "sys/kern/vfs_default.c" where default actions for VOPs go. Implement proper defaults for ABORTOP, BWRITE, LEASE, POLL, REVOKE and STRATEGY. Various stuff spread over the entire tree belongs here. 2. Change VOP_BLKATOFF to a normal function in cd9660. 3. Kill VOP_BLKATOFF, VOP_TRUNCATE, VOP_VFREE, VOP_VALLOC. These are private interface functions between UFS and the underlying storage manager layer (FFS/LFS/MFS/EXT2FS). The functions now live in struct ufsmount instead. 4. Remove a kludge of VOP_ functions in all filesystems, that did nothing but obscure the simplicity and break the expandability. If a filesystem doesn't implement VOP_FOO, it shouldn't have an entry for it in its vnops table. The system will try to DTRT if it is not implemented. There are still some cruft left, but the bulk of it is done. 5. Fix another VCALL in vfs_cache.c (thanks Bruce!)
* Update a number of panic messages to reflect the actual namempp1997-03-091-2/+2
| | | | of the routine that caused the panic.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make ffs_subr.c compile when DIAGNOSTIC is defined.mpp1997-02-101-1/+1
| | | | | It looks like this was broken before the Lite2 merge :-(. VOP_BMAP was being called with the wrong number of arguments.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-101-11/+16
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Convert DDB to new-style option.wollman1996-01-041-1/+3
|
* Staticize.phk1995-12-171-2/+2
|
* Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block countdyson1995-09-041-2/+2
| | | | for VOP_BMAP. Updated affected filesystems...
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Cosmetics. make gcc less noisy. Still some way to go here.phk1994-10-101-5/+6
|
* Added $Id$dg1994-08-021-0/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+238
OpenPOWER on IntegriCloud