Releases: freemint/dosfstools
dosfstools 4.1-mint
Up to date port of https://freemint.github.io/sparemint/sparemint/html/packages/dosfstools.html.
The package doesn't contain mkfs.fat
(same as the old one) because there is a native tool present in the freemint snapshots.
Most work done by @th-otto. His notes on this port:
The only problem is that the dirty bit handling they implemented is different from what mint expects. They set some flag in the boot sector, while the mint patch tests (according to FAT specification) a bit in the first 2 cluster numbers of the FAT.
Also, for 16-bit FATs, the dirty bit in the boot sector is set/cleared only for non-atari formatted disks.
Seems the bit in the boot sector is what linux/68k uses, while the bit in the FAT is what Windows would also check. There is also an issue open about this.
The bit in the FAT is also what the MiNT kernel sets/clears.
I have tried to implemented setting/clearing that bit for MiNT now. when testing it, watch out for a few quirks:
- the mint patch makes the command line usage slighty different from linux/m68k. On linux, both fsck+mkfs default to atari format of the bootsector, and the msdos format can be forced by using -A.
In the mint patch, the tools behave differently:
-
for fsck, you have to use -A to force DOS format, and -AA to force Atari format. However, -A is actually a toggle, and the default is taken from the partition ID xhdi returns. That may work for filesystems on harddisks, but not when testing image files.
-
mkfs defaults to Atari format, and you can force use of DOS format by using -A
I have run the included tests manually and they seem to work. But the reference data are all DOS filesystems. The tests need a xxd tool from the vim distribution which is just a single source file and compiles fine with mintlib.