#
290589 |
|
09-Nov-2015 |
ngie |
MFC r289203,r290180:
r289203 (by adrian):
makefs: introduce a new option to specify what to round the resulting image up to.
From ticket:
While trying to run FreeBSD/mips on some device having very small flash media, one is forced to compress file system with mkulzma(8) utility. It is desirable to specify small UFS block/fragment sizes like 4096/512 bytes for makefs(8) and big compression block size like 65535 bytes to mkulzma at the same time. Then one obtains very good comression ratios (like 75% and more) but faces the following problem.
geom_uncompress kernel module reports GEOM provider size rounded up to its compression block size. Generally, this changes original media size and now it fails to match the size of embedded UFS file system that leads to other problems, f.e. geom_label kernel module does not like this and skips the file system while tasting the GEOM and looking for UFS label.
This makes it impossible to refer to the file system using known UFS label instead of something like /dev/map/rootfs.uncompress.
The following patch introduces new command line option "-r roundup" for makefs that makes it round up the image to specified block size. Hence, geom_uncompress does not change GEOM media size for images rounded that way and geom_label accepts such GEOMs just fine.
With the patch applied, one can use following commands:
$ makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash optimization=space fs.img fs $ mkulzma -s 65536 -o fs.img.ulzma fs.img
PR: bin/203707 Submitted by: <eugen@grosbein.net>
r290180:
Follow up to roundup feature addition in r289203
- Rename -r to -R to avoid the clash with makefs -r in NetBSD - Note that -R is an FFS-specific option because it's not implemented in cd9660 today - Rename the roundup variable to "roundup-size" in the manpage and help text for consistency with other variables. - Bump .Dd (missed in r289203)
PR: 203707 Differential Revision: https://reviews.freebsd.org/D3959 Reviewed by: adrian (earlier patch), emaste Sponsored by: EMC / Isilon Storage Division
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
250407 |
|
09-May-2013 |
brooks |
Remove duplicated copies of various NetBSD compatibility shims used by makefs and use libnetbsd, contrib/mtree, and contrib/mknod instead.
Sponsored by: DARPA, AFRLo MFC after: 1 month
|
#
247052 |
|
20-Feb-2013 |
brooks |
Support hardlinks in manifest files by the same logic as the treewalk code.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
#
247041 |
|
20-Feb-2013 |
brooks |
Add a -D flag that causes duplicate entries in an mtree manifest to be treated as warnings rather than errors.
Reviewed by: marcel Sponsored by: DARPA, AFRL
|
#
239562 |
|
22-Aug-2012 |
hrs |
Add -p flag to create the image as a sparse file.
Submitted by: Shesha Sreenivasamurthy PR: bin/167779
|
#
230795 |
|
30-Jan-2012 |
jkim |
Allow contents of multiple directories to be merged to the current image. Note this patch was submitted to NetBSD and they already adopted it.
http://mail-index.netbsd.org/source-changes/2012/01/28/msg031078.html
MFC after: 1 week
|
#
223306 |
|
19-Jun-2011 |
marcel |
Add support for using mtree(5) manifest files to define the image to be created. The support is based on mtree version 2.0, as used in libarchive, but adds new features on top of it.
The current implementation is fully functional, but is envisioned to grow at least the following additional features over time: o Add support for the /include special command so that manifest files can be constructed using includable fragments. o Add support specifying a search path to locate content files. o Content file filters: commands that provide file contents on stdout.
The manifest file eliminates the need to first construct a tree as root in order to create an image and allows images (releases) to be created directly from object trees and/or source trees.
Reviewed by: deo Sponsored by: Juniper Networks, Inc
|
#
214921 |
|
07-Nov-2010 |
cognet |
Sync with the latest version from NetBSD. It notably addds ISO9660 support.
Submitted by: bapt
|
#
186335 |
|
19-Dec-2008 |
sam |
import netbsd makefs tool
|
#
186334 |
|
19-Dec-2008 |
sam |
add properties and FreeBSD id's
|
#
186269 |
|
18-Dec-2008 |
sam |
fix stuff i broke
|
#
186264 |
|
18-Dec-2008 |
sam |
unbreak cg_chkmagic_swap
|
#
186261 |
|
17-Dec-2008 |
sam |
Apply the big hammer: o remove all of compat except for pwcache and strstuftoll; these might end up in libutil or similar so keep them in the subdir o mv getid.c up to the top level; this looks like something that'll be makefs-specific o eliminate private versions of .h files in sys; use system files instead o eliminate private ffs_tables.c; use the system version directly (might want to adopt const'ification at some point but that's the only diff I can see) o mv remaining code from sys to ffs and strip out unused bits; this now becomes part of makefs o add compat defs and shims to makefs.h o strip all vestiges of nbtool_config.h, compat_defs.h, etc. o fixup includes after file shuffling o rename system #defines that do implicit byte swapping to have an _swap suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if we ever add endian-agnostic support to the kernel these can go back to their original names o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT)
Code compiles w/o complaints but is untested.
|
#
185222 |
|
23-Nov-2008 |
sam |
prepare makefs for import to base
|