mirror of
https://github.com/linux-apfs/apfsprogs.git
synced 2026-08-18 02:19:50 -07:00
686adf33a5015c191ab7edf6800efc071ce3125c
The spaceman includes the arrays of cib addresses inside its own block or blocks, and for that purpose the spaceman struct reports the offset of each array (one for the main device and one for tier 2). I always assumed that the offset had to actually be within the boundaries of the spaceman object, so even regular non-fusion drives would have to store a single "null" entry in the tier 2 array. Now that I've actually implemented fusion drives I accidentally got rid of that extra entry and it turns out that the official implementation doesn't mind. That said, my mkfs tests claim to work with images of the exact sizes where the spaceman becomes multiblock, but this is no longer correct because the spaceman has become slightly smaller. Adjust those two image sizes by a single cib. Signed-off-by: Ernesto A. Fernández <ernesto@corellium.com>
Apfsprogs is a suite of userland software to work with the Apple File System on Linux. It's intended mainly to help test the Linux kernel module that can be retrieved from <git://github.com/eafer/linux-apfs-rw.git>. The following are included: o mkapfs: an experimental filesystem build tool o apfs-snap: a tool to take snapshots of a volume mounted with our module o apfs-label: a tool to list the labels of all volumes in a container o apfsck: a filesystem integrity checker, for now only useful for testers Usage ===== To build any of the tools, just cd to its directory and run make The resulting executable will have the name of the tool, and a man page is available under the same directory. If you run make install the files will be copied to the typical locations in the user home folder: the binary is placed in ~/bin, and the man page in ~/share/man/man8. You can override those paths by setting the BINDIR and MANDIR variables, for example: make install BINDIR=/sbin MANDIR=/usr/share/man/man8/ Credits ======= Written by Ernesto A. Fernández <ernesto@corellium.com>.
Languages
C
98.6%
Makefile
0.6%
Roff
0.5%
Shell
0.3%