Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

File.Create do Invalid Opcode when file extension size is larger than 3

Open valentinbreiz opened this issue 1 year ago • 10 comments

image

The last command makes the kernel crash

valentinbreiz avatar Mar 03 '24 18:03 valentinbreiz

Interesting

9xbt avatar Mar 03 '24 18:03 9xbt

Ah I see Cosmos's FAT32 impl doesnt support LFS (Long Filename Support)

9xbt avatar Mar 03 '24 18:03 9xbt

@valentinbreiz

9xbt avatar Mar 03 '24 18:03 9xbt

It used to work before

valentinbreiz avatar Mar 03 '24 18:03 valentinbreiz

Ah weird then

9xbt avatar Mar 03 '24 18:03 9xbt

in the meantime maybe try using "cfg" instead of "conf"

winbamstudios avatar Mar 03 '24 23:03 winbamstudios

^

9xbt avatar Mar 05 '24 14:03 9xbt

Works for me using VFS on VMWare... tested on both my OS and Aura 🤔 4letterfileextensionAURA 4letterfileextension

cameronos avatar Mar 24 '24 16:03 cameronos

That's because cosmos does filenames weirdly... your filename is only 8 characters long (the period doesn't count) so basically cosmos stores it as this

Filename Extension
file.conf

but if you try settings.conf

Filename Extension
settings .conf

the extension is more than 3 characters long and overflows

Usually in FAT you would do this

Filename Extension
file txt

As you can see it's separated

9xbt avatar Aug 04 '24 21:08 9xbt

That's because cosmos does filenames weirdly

its the FAT driver not cosmos VFS

zarlo avatar Aug 05 '24 00:08 zarlo