Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
valentinbreiz opened this issue Mar 3, 2024 · 10 comments

Comments

@valentinbreiz
Copy link
Member

image

The last command makes the kernel crash

@9xbt
Copy link
Contributor

9xbt commented Mar 3, 2024

Interesting

@9xbt
Copy link
Contributor

9xbt commented Mar 3, 2024

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

@9xbt
Copy link
Contributor

9xbt commented Mar 3, 2024

@valentinbreiz

@valentinbreiz
Copy link
Member Author

It used to work before

@9xbt
Copy link
Contributor

9xbt commented Mar 3, 2024

Ah weird then

@winbamstudios
Copy link

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

@9xbt
Copy link
Contributor

9xbt commented Mar 5, 2024

^

@cameronos
Copy link
Contributor

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

@9xbt
Copy link
Contributor

9xbt commented Aug 4, 2024

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

@zarlo
Copy link
Member

zarlo commented Aug 5, 2024

That's because cosmos does filenames weirdly

its the FAT driver not cosmos VFS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants