From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaya Potter Subject: Re: get vfsmount from dentry Date: Sun, 12 Mar 2006 15:45:39 -0500 Message-ID: <1142196339.4954.58.camel@localhost.localdomain> 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: text/plain Content-Transfer-Encoding: 7bit Cc: Al Viro , linux-fsdevel@vger.kernel.org Return-path: Received: from cs.columbia.edu ([128.59.16.20]:57339 "EHLO cs.columbia.edu") by vger.kernel.org with ESMTP id S1751361AbWCLUpy (ORCPT ); Sun, 12 Mar 2006 15:45:54 -0500 To: Ashish Khurange In-Reply-To: <441485C5.4090900@it.iitb.ac.in> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 2006-03-13 at 02:04 +0530, Ashish Khurange wrote: > 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. look at inotify. beagle monitors entire home directory via inotify.