From mint-bounce@lists.fishpool.fi Sat Aug 29 05:19:44 2009 Subject: Re: [MiNT] symlinks and hostfs From: Petr Stehlik To: mint@lists.fishpool.fi In-Reply-To: <1251536111.3902.35.camel@joy> References: <4A97D65D.6090100@freesbee.fr> <1251532769.3902.23.camel@joy> <4A98E9A6.4040207@freesbee.fr> <1251536111.3902.35.camel@joy> Content-Type: text/plain; charset="ISO-8859-2" Date: Sat, 29 Aug 2009 11:17:07 +0200 Message-Id: <1251537427.12642.6.camel@joy> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pstehlik@sophics.cz Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n7T9JhGl019686 Petr Stehlik píše v So 29. 08. 2009 v 10:55 +0200: > > This works, but it is not the expected result (it should be relative), > > as shown on the host. > > this should be possible to fix in ARAnyM, shouldn't it? This is because the HostFS's readlink gets source host path, finds out destination host path and converts back to guest path: HOSTFS: fs_lookup: X HOSTFS: fs_lookup stat: /tmp/afros/drive_c/X HOSTFS: fs_getxattr (/tmp/afros/drive_c/X) HOSTFS: fs_getxattr (/tmp/afros/drive_c/X) HOSTFS: fs_readlink: /tmp/afros/drive_c/X HOSTFS: fs_readlink: -> /tmp/afros/drive_c/tmp HOSTFS: /fs_readlink: u:\c/tmp The host fs /tmp/afros/drive_c is converted to u:/c correctly. We are just missing some optimization that would check whether both the source and destination are on the same hostfs mount point and then convert the absolute path to a relative one eventually. I can try hacking something for you to test. Petr