summaryrefslogtreecommitdiff
path: root/usr.sbin/makefs/ffs.c
AgeCommit message (Collapse)Author
2016-11-14disklabel -w doesn't set bstart/bend, so makefs shouldn't do that either.Martin Natano
2016-11-13Pick up the FS image size, the sector size and the bsize and fsizeMartin Natano
parameters from the disklabel. discussed with deraadt
2016-11-11Clean up FFS option handling somewhat; no functional change.Martin Natano
2016-11-11Optimize for space by default.Martin Natano
ok deraadt
2016-11-10Sync bsize and fsize defaults with newfs.Martin Natano
2016-11-10Remove the unused cpg field from ffs_opt_t.Martin Natano
2016-11-08Respect -Ooffset for the disklabel location.Martin Natano
2016-11-08Add a disklabel option that creates a disklabel with the info providedMartin Natano
by disktab. This is one piece of the puzzle that will allow use to build install media without vnd. ok deraadt
2016-11-06Remove unused fields from ffs_opt_t.Martin Natano
2016-10-26s/EXIT_FAILURE/1/Martin Natano
2016-10-26Remove FS-specific option descriptions from the source code. We have aMartin Natano
manual for that. While there document the isolevel option and remove some dysfunctional cd9660 options.
2016-10-23Remove short option names for -o.Martin Natano
2016-10-22Get rid of remaining FFS byteswap function stubs.Martin Natano
2016-10-22Clean up timestamp handling code to be less confusing.Martin Natano
2016-10-22Remove huge amounts of debug code, that make the code nearly unreadable.Martin Natano
2016-10-22s/panic/errx/ This is userland.Martin Natano
2016-10-22Include our own <ufs/ufs/dinode.h>, <ufs/ufs/dir.h> and <ufs/ffs/fs.h>Martin Natano
header files instead of relying on copies of NetBSD's headers. This required some changes in the .c files, due to renamed fields, functions and preprocessor macros. Also pull in our own ffs_tables.c. As a bonus this diff gets rid of layout compatibility issues in the superblock (position of the fs_flags field).
2016-10-22Use deterministic pseudo-random numbers when the -T flag is used; forMartin Natano
repeatable builds.
2016-10-18Merge ufs/{ufs,ffs}/ into ffs/.Martin Natano
2016-10-17Remove "feature" defines. This code won't try to be portable when we areMartin Natano
done hacking it.
2016-10-17mechanical rename of vnode to mkfsvnode and buf to mkfsbuf to avoidTed Unangst
collisions with the kernel structures of the same name. caught one bug where the wrong header was being included.
2016-10-16remove swapping add macrosTed Unangst
2016-10-16remove some byte swapping code from the top endTed Unangst
2016-10-16/* XXX bounds checking! */Ted Unangst
very crudely fix a few strcpy and sprintf warnings. leave the quality warnings.
2016-10-16Remove the -Z (spare ffs image) option.Martin Natano
2016-10-16Add OpenBSD RCS tags; reminded by tbMartin Natano
2016-10-16Unused includes, as reported by include-what-you-use from ports.Martin Natano
2016-10-16Import makefs - a tool to create filesystem images from a directory.Martin Natano
This is a rough port of the NetBSD tool with some features removed we don't need. It compiles, but I don't promise anything more. Importing now, so we can hack on it in tree. The supported filesystem types are: cd9660, ffs and msdosfs. ok deraadt