From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ashish Khurange Subject: Re: get vfsmount from dentry Date: Mon, 13 Mar 2006 02:04:13 +0530 Message-ID: <441485C5.4090900@it.iitb.ac.in> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Shaya Potter , linux-fsdevel@vger.kernel.org Return-path: Received: from smtp1.iitb.ac.in ([59.163.25.49]:9154 "HELO smtp1.iitb.ac.in") by vger.kernel.org with SMTP id S1751729AbWCLUeg (ORCPT ); Sun, 12 Mar 2006 15:34:36 -0500 To: Al Viro In-Reply-To: <20060312191319.GE27946@ftp.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Al Viro wrote: >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? > > Well, forget about this particualr case. My final aim is to build online file system mirroring tool for home directories. And lets assuming that no other user have superuser privilage to use mount or make symbolic links to directories. I want entire pathname of changed file to replicate that change on the corresponding file in the mirror site.