mirror of
https://github.com/linux-apfs/apfsprogs.git
synced 2026-08-18 02:19:50 -07:00
11b86b68260cbc06cab93316fa1acbe3cba642ca
For containers of 3G, mkfs is currently failing with sigbus. This is a result of the previous patch, which uses an unnecessarily convoluted formula for the number of data blocks in filesystems between 1G and 4G, as part of a senseless (and failed) attempt to get the exact same values as the offcial newfs_apfs. The problem is that a term of the formula can go negative for some sizes, and C integer promotion rules turn this into huge values. I should really simplify the formula, but I'm really tired of this so for now just cast the dangerous term to a big enough signed type. 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 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%