| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
information to /tmp/growfs.debug, which is a world-writable directory.
MFC after: 3 days
Reported by: Jon Passki <cykyc@yahoo.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
any fake value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) ginode() is passed a cylinder group number and inode number. The inode
number is relative to the cg. Use this relative number rather than the
absolute inode number when searching the cg inode bitmap to see if the inode
is allocated. Using the absolute number quickly runs the check off the end
of the array and causes invalid inodes to be referenced.
2) ginode() checks the absolute indoe number to make sure that it is greater
than ROOTINO. However, the caller loops through all of the possible inode
numbers and directly passes in values that are < ROOTINO. Instead of halting
the program with an error, just return NULL.
3) When allocating new cylinder groups, growfs was initializing all of the
inodes in the group regardless of this only being required for UFS1. Not
doing this for UFS2 provides a significant performance increase.
These fixes allow growing a filesystem beyond a trivial amount and have
been tested to grow an 8GB filesystem to 1.9TB. Much more testing would
be appreciated.
Obtained from: Sandvine, Inc.
|
|
|
|
|
| |
to use when setting values that depend on the UFS version.
Raise WARNS again.
|
| |
|
|
|
|
| |
Use braces instead.
|
|
|
|
| |
for the declaration of time().
|
|
|
|
| |
Tested on: alpha, i386, ia64, sparc64
|
|
|
|
|
|
|
|
| |
WARNS=6. I don't change the WARNS level in the Makefile because I
didn't tested this on other archs.
The fs.h fix was suggested by: marcel
Reviewed by: md5(1)
|
|
|
|
|
|
|
| |
- Use the %jd format and a cast to intmax_t to print an int64_t.
- The return type of getopt() is an int, not a char.
This fixes some warnings but there's still much more work to do here.
|
|
|
|
|
|
| |
the {powerpc, sparc64, ia64} tinderboxes.
Sorry for the noise. :-(
|
|
|
|
| |
Approved by: grog (mentor)
|
|
|
|
| |
commit bits retired for safe keeping.
|
|
|
|
|
|
| |
all inodes are initialized when running newfs.
Approved by: grog (mentor)
|
|
|
|
|
|
| |
PR: bin/61472
Submitted by: Alex Popa <razor@ldc.ro>
MFC after: 1 week
|
|
|
|
| |
Noticed by: Andre Guibert de Bruet <andy@siliconlandmark.com> (via -doc)
|
|
|
|
| |
Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> (via -doc)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for UFS2 to the UFS debugging routines in growfs; required
to update ffsinfo(8) for UFS2. A variety of types and fs variables are
renamed to reflect UFS1/2 structures. Also, the print routines for
inodes are now split into separate UFS1 and UFS2 versions. We now
define dbg_dump_csum_total(), but lose the printing of rotational
information since that's not present in UFS2. In the future, we may
want to re-add this functionality to print it solely for UFS1.
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
PR: bin/53517
|
|
|
|
| |
the build almost a year ago.
|
| |
|
|
|
|
|
| |
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
Approved by: re (scottl)
|
|
|
|
|
| |
PR: misc/50979
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
|
|
|
|
| |
Add FreeBSD Id tag where missing.
|
|
|
|
| |
Approved by: re
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the old 8-bit fs_old_flags to the new location the first time that the
filesystem is mounted by a new kernel. One of the unused flags in
fs_old_flags is used to indicate that the flags have been moved.
Leave the fs_old_flags word intact so that it will work properly if
used on an old kernel.
Change the fs_sblockloc superblock location field to be in units
of bytes instead of in units of filesystem fragments. The old units
did not work properly when the fragment size exceeeded the superblock
size (8192). Update old fs_sblockloc values at the same time that
the flags are moved.
Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk>
Sponsored by: DARPA & NAI Labs.
|
| |
|
| |
|
|
|
|
|
|
|
| |
before growing partitions with growfs(8), if necessary.
PR: docs/42148
Submitted by: Chris S.J. Peron <maneo@bsdpro.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
|
|
|
|
|
|
|
|
|
| |
open "/dev/stdout". This doesn't actually affect growfs, but does affect
ffsinfo, permitting ffsinfo to output to the shell's stdout rather than
requiring it be dumped to a file or explicitly pointed at a special
device.
Reviewed by: peter
|
|
|
|
|
| |
PR: docs/34918
Submitted by: Harry Newton <harry_newton@telinco.co.uk>
|
| |
|
|
|
|
|
|
| |
Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
|
| |
|
| |
|
|
|
|
|
|
| |
Submitted by: Chris Boltwood <chris@hiendmedia.com>
Reviewed by: tomsoft
MFC after: 5 days
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
and yes now it also works on alpha
Reviewed by: chm
MFC after: 3 weeks
|
|
|
|
|
|
|
| |
in an unclean filesystem after growing by a large amount of cylinder
groups
Reviewed by: chm
|