From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Hudec Subject: Re: get vfsmount from dentry Date: Mon, 13 Mar 2006 08:24:19 +0100 Message-ID: <20060313072418.GA6717@djinn> References: <441425BB.6030604@it.iitb.ac.in> <20060312135543.GB27946@ftp.linux.org.uk> <44145873.6010802@it.iitb.ac.in> <20060312174149.GC27946@ftp.linux.org.uk> <441461D1.6090803@it.iitb.ac.in> <1142187797.4954.41.camel@localhost.localdomain> <44146E7E.8090902@it.iitb.ac.in> <20060312191319.GE27946@ftp.linux.org.uk> <441485C5.4090900@it.iitb.ac.in> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Cc: Al Viro , Shaya Potter , linux-fsdevel@vger.kernel.org Return-path: Received: from cimice0.lam.cz ([212.71.168.90]:10923 "EHLO cimice.yo.cz") by vger.kernel.org with ESMTP id S1751772AbWCMHYh (ORCPT ); Mon, 13 Mar 2006 02:24:37 -0500 To: Ashish Khurange Content-Disposition: inline In-Reply-To: <441485C5.4090900@it.iitb.ac.in> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 13, 2006 at 02:04:13 +0530, Ashish Khurange wrote: > Al Viro wrote: >=20 > >mkdir /tmp/1 > >mkdir /tmp/2 > >mkdir /tmp/3 > >mount --bind /tmp/2 /tmp/1 > >mkdir /tmp/1/a > >umount /tmp/1 > >mount --bind /tmp/3 /tmp/1 > >mkdir /tmp/1/a > >umount /tmp/1 > > > >What output do you want to get from the last two mkdir() calls, assuming > >you do have vfsmounts? What is this output useful for? > >=20 > Well, forget about this particualr case. > My final aim is to build online file system mirroring tool for home=20 > directories. And lets assuming that no other user have superuser=20 > privilage to use mount or make symbolic links to directories. > I want entire pathname of changed file to replicate that change on the=20 > corresponding file in the mirror site. And why do you need abvolute paths for that? You only need paths relative to root of that particular filesystem -- and you can get those without vfsmount. --=20 Jan 'Bulb' Hudec --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEFR4iRel1vVwhjGURAuiWAJ9k39xC/kK4Y0P1mDCAUbCx4wDcfQCeLFi/ Fj/7BjycbleuP4qj5P9zldU= =ufIS -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--