summaryrefslogtreecommitdiff
path: root/usr.sbin/makefs
AgeCommit message (Collapse)Author
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2003-10-27Overhaul how `build.sh tools' are used:lukem
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h * Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more. These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
2003-10-26Mention that we should be adding space for bitmaps.mycroft
2003-10-26Remove a strange multiplication which appears to be incorrect.mycroft
2003-10-16safer use of reallocitojun
2003-09-19realloc pedantitojun
2003-09-07Revert arc4random usage. makefs is only used for install images,fvdl
filehandle randomization is not an issue there, and using arc4random broke building makefs as a host tool.
2003-09-06use arc4randomitojun
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-06-15Fix function declaration mismatch with src/sys/ufs/ffs/ffs_extern.h whichtsutsui
causes makefs(8) failure on big endian machines. Pointed out by tsubai. XXX The real problem is that some sources include {.CURDIR}/ffs/ffs_extern.h XXX but others include /usr/include/ufs/ffs/ffs_extern.h .
2003-05-18Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),lukem
there's no need to special-case .include-ing it.
2003-05-09just for safety - use sizeofitojun
2003-04-16Protect use of __RCSID() with a check to ensure that it's defined.briggs
Suggested by Ian Lance Taylor on tech-userlevel@ to help cross-compilation on Red Hat 7.3.
2003-04-02Add support for UFS2. UFS2 is an enhanced FFS, adding support forfvdl
64 bit block pointers, extended attribute storage, and a few other things. This commit does not yet include the code to manipulate the extended storage (for e.g. ACLs), this will be done later. Originally written by Kirk McKusick and Network Associates Laboratories for FreeBSD.
2003-03-30Tweak Jason's -x support to pass its state around as part of fsinf_t,lukem
just like all the other "global" options. Update the usage for -x. Crank date on man page. (Thanks to Jason for adding -x; I've been meaning to add that functionality for a while :-)
2003-03-29Add a -x option which causes makefs(8) to exclude any file system nodethorpej
not explicitly listed in the specfile.
2003-03-10support 1234 and 4321 as valid byte-order arguments for -Blukem
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-02-14The correct capitalisation of 'NetBSD.org' is (yougrant
guessed it) 'NetBSD.org'. some mdoc fixes.
2003-01-28make this build on alpha after daddr_t->64bitmrg
2003-01-27s/ulong/unsigned long/. ulong is for SysV compatibility, there's nouwe
point in using it in our code. This change makes makefs(8) compile on host systems without ulong.
2003-01-24Bump daddr_t to 64 bits. Replace it with int32_t in all places wherefvdl
it was used on-disk, so that on-disk formats remain the same. Remove ufs_daddr_t and ufs_lbn_t for the time being.
2002-11-30tweaks for fparseln(3) move from libutil to libc:lukem
- remove #include <util.h> if nothing else needed it - remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30oops; libutil is (currently) needed by ../mtree/spec.c for fparselnlukem
2002-11-30- remove -lutil; nothing here needs itlukem
- no need to reference ../../bin/dd now that strsuftoll(3) is in libc
2002-11-29convert from strsuftoull() (from ../../bin/dd) to strsuftoll(3) in libclukem
2002-10-19use readlink with bufsize - 1; approved thorpej.provos
2002-09-18use NETBSDSRCDIR as appropriatelukem
2002-08-08Remove extraneous \n's in {err,warn}{,x} that used to be printfs.soren
2002-07-20sweep of errx/warnx, remove unnecessary trailing \ngrant
2002-05-30d_namlen is a uint8_t, and thus will always be < MAXMANLEN + 1 (256),thorpej
so there is no need to assert it.
2002-02-15- Clear fs_fmod in superblock before final write. Noted by Erik Anggard.lukem
- Explicitly close the image file descriptor at the end of ffs_makefs().
2002-02-14remove (now) incorrect commentlukem
2002-02-08If an entry is in the specfile but not in the underlying file system, and it'slukem
marked "optional", don't add it. (e.g, don't create a zero-length file).
2002-02-06use (size / DEV_BSIZE) instead of btodb(size). fixes cross build issue.lukem
2002-02-06don't need <ufs/ufs/dir.h> herelukem
2002-02-06- clean up some debugging and verbose outputlukem
- use fs_cstotal.cs_nifree rather than fs->fs_ncg * fs->fs_ipg to determine the number of free inodes available in the file system - don't count '.' (the root node for a level) in inode sizing, since the parent has already been counted - some more todo items
2002-01-31Roll in fixes to permit cross-compiling from non-NetBSD hosts. Thistv
round has been tested on Solaris/x86 and Linux hosts. * Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
2002-01-31Protect __RCSID and __COPYRIGHT from being invoked if not defined.tv
2002-01-26be a little bit more verboselukem
2002-01-26- crank default cpg from 16 to 65536, and let the auto-sizing code inlukem
mkfs() do its job - pass cpgflg=1 to mkfs() if the user provided cpg, =0 otherwise - improve error reporting in ffs_write_file() - only add superblock & block map slop for one cylinder group. trying to calculate the number of required cylinder groups caused too many problems when tweaking parameters for small file systems. rely upon slop from minfree, and upon ffs_write_file() to complain if the user is too aggressive about tweaking the parameters
2002-01-24-N dbdir allows reading user & group info from a different sourcelukem
2002-01-24Add '-N dbdir', to specify that user & group lookups (via pwcache(3)) are tolukem
be done from dbdir/master.passwd and dbdir/group, using simple text file parsing routines from ../mtree/getid.c
2002-01-23Merge create_fsinode() into create_fsnode(), so that a newly createdlukem
fsnode always has a valid inode member. Problem noted by Artem Belevich.
2002-01-23more stufflukem
2002-01-22add config.h when compiled as host tool.is
2002-01-18use -1 instead of 0 as the value to indicate if a numeric parameterlukem
hasn't been set and thus needs a default override. allows minfree and rotdelay to take a value of 0.
2002-01-18apply changes from revs 1.56-1.59 of newfs/mkfs.c:lukem
* revision 1.56 the change of calculation of inodes per group in rev 1.52 was far too aggressive; rework to be a bit less susceptable to round-off error. now it's likely that the density might not be obtained with a small filesystem with a large number of inodes (e.g -s 4M -i 1k), but that's an extremely unlikely corner case that can easily be rectified with command-line arguments. fixed provided in private email by Takao Shinohara <shin@sm.sony.co.jp> should resolve PRs [bin/14049] and [bin/14046] [ this fixes a problem in makefs(8) that matt green reported ] * revision 1.58 clamp bsize to MAXBSIZE * revision 1.59 don't bother printing a warning about the cylinder group size being restricted if -c isn't given; it just confuses a user of newfs (and the cpg info is printed as part of the display anyway), and prints an unnecessary warning for mount_mfs. XXX: I must rework newfs/mkfs.c to make it easier to just .PATH into makefs(8)
2002-01-18don't need ffs/buf.h herelukem
2002-01-10setprogname(argv[0])lukem