Reply 140 of 141, by Oerg866
I once attempted to implement such a thing, but it turns out that this file naming behavior is oddly difficult to replicate 🤪
I once attempted to implement such a thing, but it turns out that this file naming behavior is oddly difficult to replicate 🤪
Oerg866 wrote on 2025-03-25, 08:35:I once attempted to implement such a thing, but it turns out that this file naming behavior is oddly difficult to replicate 🤪
Maybe steal some code from DOSBox? Or the Linux or BSD msdosfs implementations? At least the former has to actually construct correct 8.3 FAT entries with LFNs from whichever underlying filesystem you have. And the msdosfs code needs to do the same whenever you attempt to create new files:
FreeBSD sys/fs/msdosfs/msdosfs_conv.c (direct link to the unix2dosfn() function)
I have no idea if it's possible, "easy", or how to adapt this to etherdfs so .. I'm sorry I can't help more :(
The Floppy Museum - on a floppy, on a 286: http://floppy.museum
286-24/4MB/ET4kW32/GUS+SBPro2
386DX-40/20MB/CL5434 ISA/GUSExtreme
486BL-100/32MB/ET4kW32p VLB/GUSPnP/AWELegacy
~ love over gold ~