From mint-bounce@lists.fishpool.fi Sat Aug 29 12:52:05 2009 Subject: Re: [MiNT] symlinks and hostfs From: Petr Stehlik To: mint@lists.fishpool.fi In-Reply-To: <1251561900.23844.7.camel@jetpack.demon.co.uk> References: <4A97D65D.6090100@freesbee.fr> <1251471399.19057.103.camel@jetpack.demon.co.uk> <1251472068.19057.104.camel@jetpack.demon.co.uk> <4A97F60C.5040903@freesbee.fr> <1251473424.19057.108.camel@jetpack.demon.co.uk> <4A98472E.3010505@freesbee.fr <1251532244.3902.18.camel@joy> <1251550654.12642.71.camel@joy> <1251555169.21551.32.camel@joy> <1251561900.23844.7.camel@jetpack.demon.co.uk> Content-Type: text/plain; charset="ISO-8859-2" Date: Sat, 29 Aug 2009 18:49:52 +0200 Message-Id: <1251564592.4397.16.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 n7TGq5l6029777 Alan Hourihane píše v So 29. 08. 2009 v 17:05 +0100: > > If we re-read this whole thread we find out that at the very beginning > > Vincent said that because "Fstat64() does not seem to be implemented in > > hostfs, we fall back in Fxattr()" and then questioned the "unused flag". > > Alan quickly jumped in and reported that "this is a bug in aranym. It > > uses it's own host_stat64()". This is where this thread got sort of > > interconnected with the parallel thread "stat() and blocks" because in > > that thread Alan said the same thing about HostFS :-) > > Excuse me, but what exactly did I say on the "stat() and blocks" > thread ?? "It appears that hostfs doesn't implement fstat64". Seems like I confuse anything that ends with "64". > Getting back to my patch, it uses lstat() exclusively in all cases. > Using stat() will end up stat'ing the wrong file when symlinks are being > checked. This looks like a bug in ARAnyM to me I have tried to explain that it supposed to be a feature, not a bug. Did you read my explanation? Did it make sense? > I've posted a patch to help demonstrate the problem with ARAnyM, > which cures the problem for me I didn't know you had a symlink problem as well. Can you please show me where the symlink pointed to? Was it outside of the mapped paths? And could you read the contents of the symlinked file before and after the hostfs.cpp patch? And last thing: could you please re-try that without ARAnyM patch with stock AFROS 8.12? It helped Vincent so I am wondering if it helped you, too. Thanks a lot. Petr