summaryrefslogtreecommitdiffstats
path: root/sbin/growfs
Commit message (Collapse)AuthorAgeFilesLines
* Don't define FS_DEBUG by default, as this causes growfs to write debuggingrwatson2005-03-311-1/+0
| | | | | | | information to /tmp/growfs.debug, which is a world-writable directory. MFC after: 3 days Reported by: Jon Passki <cykyc@yahoo.com>
* Sort sections.ru2005-01-181-18/+18
|
* Remove \n at the end of err(3) stringscharnier2005-01-161-7/+5
|
* Cross-reference ffsinfo(8).jkoshy2004-12-261-0/+1
|
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* 3 important fixes for growfs:scottl2004-10-091-22/+42
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Catch up with recent gcc changes and introduce a DIP_SET macrole2004-07-292-3/+9
| | | | | to use when setting values that depend on the UFS version. Raise WARNS again.
* Downgrade WARNS level until GCC 3.4.2 warning are fixed.kan2004-07-281-1/+1
|
* Parenthesised string literals are invalid in initialisers for character arrays.stefanf2004-07-061-1/+1
| | | | Use braces instead.
* Include <time.h> instead of depending on namespace pollution in <sys/stat.h>bde2004-04-041-0/+1
| | | | for the declaration of time().
* It seems growfs(8) is now WARNS?=6 safe.mux2004-04-031-1/+1
| | | | Tested on: alpha, i386, ia64, sparc64
* Fix the remaining warnings of growfs(8) on my sparc64 box withmux2004-04-031-4/+4
| | | | | | | | 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)
* - Don't abuse caddr_t when what we really want is a void *.mux2004-04-031-4/+5
| | | | | | | - 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.
* Temporarily go back to WARNS=0 until I can figure out what's breakingle2004-04-031-1/+1
| | | | | | the {powerpc, sparc64, ia64} tinderboxes. Sorry for the noise. :-(
* Make growfs WARNS=6 clean.le2004-04-033-45/+49
| | | | Approved by: grog (mentor)
* Remove these MAINTAINER lines since the maintainers has had theirjohan2004-04-011-2/+0
| | | | commit bits retired for safe keeping.
* Don't read an inode which isn't used to avoid problems on UFS2 where notle2004-03-261-0/+8
| | | | | | all inodes are initialized when running newfs. Approved by: grog (mentor)
* Fix bogus "ffsinfo -c 0" example with "ffsinfo -g 0 -l 4".blackend2004-01-231-1/+2
| | | | | | PR: bin/61472 Submitted by: Alex Popa <razor@ldc.ro> MFC after: 1 week
* Remove another instance of 'disklabel' which eluded me last time.trhodes2003-12-261-1/+1
| | | | Noticed by: Andre Guibert de Bruet <andy@siliconlandmark.com> (via -doc)
* s/disklabel/bsdlabeltrhodes2003-12-231-1/+1
| | | | Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> (via -doc)
* Remove a few unused variables.trhodes2003-10-301-3/+2
|
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.rwatson2003-08-142-115/+292
| | | | | | | | | | | | | 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
* Remove references to ffsinfo(8) for now. It was disconnected frombrueffer2003-06-171-1/+0
| | | | the build almost a year ago.
* style clean.obrien2003-06-111-2/+2
|
* Understand GEOM. This makes growfs work again, but it really needs rewriting.grog2003-05-121-28/+57
| | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> Approved by: re (scottl)
* Fix typos in comments; some style(9) fixes; no code changes.schweikh2003-04-261-121/+117
| | | | | PR: misc/50979 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Create a new 32-bit fs_flags word in the superblock. Add code to movemckusick2002-11-271-2/+1
| | | | | | | | | | | | | | | | | 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.
* Typo fix that I brought in rev 1.16keramida2002-11-211-1/+1
|
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-252-6/+8
|
* Mention that fdisk(8) should be used to grow the containing slicekeramida2002-08-291-0/+6
| | | | | | | before growing partitions with growfs(8), if necessary. PR: docs/42148 Submitted by: Chris S.J. Peron <maneo@bsdpro.com>
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-213-34/+34
|
* can not -> cannot.ru2002-08-131-2/+2
|
* The .Nm utilitycharnier2002-07-061-4/+7
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-395/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* more file system > filesystemtrhodes2002-05-162-22/+22
|
* Remove 'register' keyword.obrien2002-03-201-1/+1
| | | | | | 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?)
* Teach growfs's dbg_open() that a filename of "-" for output means torwatson2002-03-201-1/+4
| | | | | | | | | 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
* Typo fix: Usally -> Usually.keramida2002-02-141-1/+1
| | | | | PR: docs/34918 Submitted by: Harry Newton <harry_newton@telinco.co.uk>
* Minor grammar fixes.markm2002-02-061-4/+4
|
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-132-2/+0
|
* mdoc(7) police: spelling, punctuation and markup nits.ru2001-08-101-10/+12
|
* fixing a bug in test mode (growfs -N)chm2001-08-082-35/+75
| | | | | | Submitted by: Chris Boltwood <chris@hiendmedia.com> Reviewed by: tomsoft MFC after: 5 days
* MFS: in HISTORY section, fix release number of first appearancesheldonh2001-08-011-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-18/+18
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* cleanup to get rid of most warnings on alphatomsoft2001-06-072-92/+105
| | | | | | | and yes now it also works on alpha Reviewed by: chm MFC after: 3 weeks
* fix a bug of a only partitally initialization which could resulttomsoft2001-06-051-1/+2
| | | | | | | in an unclean filesystem after growing by a large amount of cylinder groups Reviewed by: chm
OpenPOWER on IntegriCloud