Support for symbolic links inside MiSTer

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team

Doozer
Atariator
Atariator
Posts: 22
Joined: Fri Apr 22, 2016 12:26 pm

Support for symbolic links inside MiSTer

Postby Doozer » Fri Mar 09, 2018 11:01 am

Hi Sorelig,

I managed to have NFS share mounted on my system. I have observed that symbolic links (ln) to other directory are not visible inside the menu. Would it be possible to enable linked directory to be visible inside MiSTer? Thank you.

On the other hand, link to files are visible but not readable. Here is the console output.

Code: Select all

FileOpenEx(open) File:/media/fat/Amiga/test.adf, error: -1.


Let me know if you need more output.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3170
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Support for symbolic links inside MiSTer

Postby Sorgelig » Fri Mar 09, 2018 12:16 pm

Links won't work because filesystem is FAT.
Besides filesystem restrictions links are out of "easy to use" scope. Don't bring these nasty linux features to MiSTer.

Doozer
Atariator
Atariator
Posts: 22
Joined: Fri Apr 22, 2016 12:26 pm

Re: Support for symbolic links inside MiSTer

Postby Doozer » Fri Mar 09, 2018 12:54 pm

:D It is true that exfat does not feature symlinks. Nevertheless, Linux exfat allows to have this kind of fancy thing.

If I forget about symlinks and use mount to rebase a directory on top of the exfat partition then browsing directory and loading file work great.

I have noticed that (e.g. for minimig) the file must be writeable otherwise it cannot be opened.

@Sorelig, very good job, thanks for all the efforts you put in MiSTer :cheers:

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3170
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Support for symbolic links inside MiSTer

Postby Sorgelig » Fri Mar 09, 2018 2:08 pm

Doozer wrote:I have noticed that (e.g. for minimig) the file must be writeable otherwise it cannot be opened.

HDF or ADF?
HDF should be writable as HDD has no write protection in real life.
ADF can be read only to prevent writing, although need to check as Minimig handled differently than other cores.

Doozer
Atariator
Atariator
Posts: 22
Joined: Fri Apr 22, 2016 12:26 pm

Re: Support for symbolic links inside MiSTer

Postby Doozer » Fri Mar 09, 2018 2:49 pm

I am talking about ADF file.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3170
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Support for symbolic links inside MiSTer

Postby Sorgelig » Fri Mar 09, 2018 4:35 pm

i've checked. No problem to mount read-only ADF on exFAT volume.
Probably your problem lays somewhere in your non-expected file system modifications.

Locutus73
Captain Atari
Captain Atari
Posts: 185
Joined: Wed Feb 07, 2018 6:13 pm

Re: Support for symbolic links inside MiSTer

Postby Locutus73 » Fri Mar 09, 2018 7:44 pm

Sorgelig wrote:Links won't work because filesystem is FAT.
Besides filesystem restrictions links are out of "easy to use" scope. Don't bring these nasty linux features to MiSTer.

I expected the same, but I tried just in case… and they work, MiniMig loads symbolically linked kickstarts.

Locutus73


Return to “MiSTer”

Who is online

Users browsing this forum: oldgit and 3 guests