[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] symlinks and hostfs



Petr Stehlik wrote:
Vincent Rivière píše v So 29. 08. 2009 v 23:01 +0200:
link -> /d/cygdrive/c/Vincent/afros/drive_c/home/aftp.cfg
This works, but it is not the expected result (it should be relative), as shown on the host.
I didn't notice at first, but even the absolute path displayed as target is wrong. There is a bogus /d prefix inserted before the actual absolute target.

it's not bogus as the /d/ in FreeMiNT is D:\ in TOS, i.e. root of your
host FS in Cygwin.

Ok, you're right, I was confused.
Cygwin's / is mounted on MiNT's /d (because of D = / in ARAnyM's config file) so MiNT's /d/cygdrive/c is actually Cygwin's /cygdrive/c, that path is perfectly valid.

Anyway it is very confusing to see ARAnyM tweaking the symlink target that way. It is quite insane that ARAnyM tries to find symlink targets across hostfs mounts. I think if ARAnyM reports a "file" as a symlink, it should report the exact target provided by the host, as reported by the host readlink(), without trying to tweak it. I hope you did that in your "relative symlink" patch.

Now about the totally different feature named "Standa's real file simulator". If the target of the symlink is located outside the same hostfs mount, it is reported as a real file (so MiNT will never know the value of the actual symlink target). I think it could be a good idea, in order to make some files appear magically in the hostfs, while being physically located elsewhere. Ideally this behaviour could be enabled or disabled with an option. However I'm not sure this option is really useful in the real world. And if the target of the symlink is on another mount, don't bother and report it as a real file as well.

Finally for intermount symlinks I'm not sure... But seriously, does someone do this in the real world ? It becomes really weird when / is mounted on a TOS letter like in AFROS...

I have just removed the D: mapping in AFROS and it's still working
correctly.

Either you don't use the official ARAnyM 0.9.8beta, or we don't test in the same way. I've just seen your other post, I'm going to continue there.

--
Vincent Rivière