On 2/3/21 12:41 PM, John Paul Adrian Glaubitz wrote: > OK, I have skimmed through the hfsprogs source again and I think, I will > re-add HFS Legacy support. It should be feasible to add it back in as most > of the functionality is still there. > > There are some extra functions that were removed as well such as > WriteSystemFile(), > WriteBitmap() and WriteReadmeFile(), but it should be easy to add them back > in.
I quickly hacked that together now, but it's not really working yet as some size calculations are incorrect: root@z6:..hfsprogs/newfs_hfs.tproj> ./newfs_hfs -h /dev/sdl2 Initialized /dev/sdl2 as a 3863 MB HFS volume newfs_hfs: Warning: block size 0 is less than catalog b-tree node size 4096 newfs_hfs: Warning: block size 0 is less than extents b-tree node size 4096 Floating point exception root@z6:..hfsprogs/newfs_hfs.tproj> hmount /dev/sdl2 Volume name is "" Volume was created on Wed Feb 3 13:46:28 2021 Volume was last modified on Wed Feb 3 13:46:28 2021 Volume has 4048625152 bytes free root@z6:..hfsprogs/newfs_hfs.tproj> hdir hdir: Current HFS directory "::" no longer exists hdir: ":": no such file or directory root@z6:..hfsprogs/newfs_hfs.tproj> fsck.hfs /dev/sdl2 ** /dev/sdl2 Executing fsck_hfs (version 540.1-Linux). ** Checking HFS volume. Invalid node structure (4, 1) Invalid record count (4, 1) Catalog file entry not found for extent (4, 0) ** The volume could not be verified completely. root@z6:..hfsprogs/newfs_hfs.tproj> Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913