<div dir="ltr">Have you tried to play with the mount options -L and -D described in mount_msdos(8)?  I haven't tried myself, but could be worth a shot.<div><br></div><div>Cheers,</div><div>Max</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at 10:43 PM Mike Zhang <<a href="mailto:furry_for_puffy@runbox.com">furry_for_puffy@runbox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a bunch of files with unicode filenames that I'm trying to copy onto<br>
an MSDOS mount and what ends up happening is I get a bunch of invalid nodes<br>
that cannot be accessed in any way, including rm -rf /mymountpt/dir.  This<br>
seems to be because mount_msdos is trying to be too smart for its own good<br>
and convert character sets in a way that apparently results in invalid<br>
filenames sometimes.  I am using -L en_US.UTF-8 -D UTF-8 to mount the fs.<br>
<br>
I've already had to wipe the FAT table, re-newfs and restore from backup on<br>
OpenBSD because there was no other way to get rid of the invalid nodes (the<br>
nodes created by DragonFly are undeleteable even on OpenBSD).  As far as I'm<br>
aware, OpenBSD's mount_msdos treats each filename as a raw char *, to be<br>
passed through byte for byte without regard to charsets or code pages or<br>
what have you.  This is exactly the behavior I'm looking for.<br>
<br>
So my question is, is there any way to force raw, unconverted filenames on<br>
DragonFly?  I'd like to be able to use this thing on all my boxen without<br>
resorting to silliness like NFS exporting it from OpenBSD.<br>
<br>
Mike<br>
<br>
</blockquote></div>