summaryrefslogtreecommitdiffstats
path: root/lib/libstand/ufs.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-95/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* UFS indirect blocks are size u_int32_t, not daddr_tphk2002-05-181-2/+2
|
* #include <sys/disklabel.h> to get BBSIZE.phk2002-05-121-0/+1
|
* Remove 'register' keyword.obrien2002-03-211-28/+28
|
* Add support for overwriting the existing contents of a file to the UFSjhb2001-12-111-4/+119
| | | | | | | | | driver in libstand. This specifically does not expand or truncate files since the filesystem may be dirty or inconsistent. PR: kern/32389 Submitted by: Jonathan Mini <mini@haikugeek.com> Sponsored by: ClickArray, Inc.
* Add __FBSDID()s to libstanddillon2001-09-301-1/+3
|
* Add a readdir function to the loader fsops vector, and implement thejlemon2000-04-291-1/+37
| | | | functionality for some of the filesystesms.
* * Enable old UFS compatibility code for booting from Digital Unix formatteddfr1998-09-261-0/+4
| | | | | | | disks. * Fix a whole raft of warnings, printf and otherwise. * Make zalloc work for alpha (just a case of using the right typedef). * Add some (disabled) malloc debug printing to stand.h.
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlymsmith1998-09-261-46/+14
| | | | | | | | | | | | | | | | | compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com>
* Allocate disk buffers using a custom allocator. The standard allocator ↵dfr1998-09-201-11/+45
| | | | | | | fragments extremely badly if disk buffers are freed back into the main heap and the alpha bootstrap has a restricted address space which just ran out :-(.
* Path arguments to *_open functions should be const, but we were manglingmsmith1998-09-181-4/+11
| | | | | | them. Submitted by: write-protected text segment in BTX
* This is libstand; a support library for standalone executables (eg. bootstrapmsmith1998-08-201-0/+704
modules). Obtained from: NetBSD, with some architectural changes and many additions.
OpenPOWER on IntegriCloud