From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Smirl Subject: Re: Re: The argument for fs assistance in handling archives (was: silent semantic changes with reiser4) Date: Fri, 3 Sep 2004 11:17:30 -0400 Message-ID: <9e4733910409030817311e58ef@mail.gmail.com> References: <20040901200806.GC31934@mail.shareable.org> <200409021407.i82E70hx004899@laptop11.inf.utfsm.cl> <20040902173214.GB24932@mail.shareable.org> <20040902214731.GF24932@mail.shareable.org> <1094164023.6163.2.camel@localhost.localdomain> Reply-To: Jon Smirl Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jamie Lokier , Christer Weinigel , Horst von Brand , Adrian Bunk , Hans Reiser , viro@parcelfarce.linux.theplanet.co.uk, Linus Torvalds , Christoph Hellwig , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , Alexander Lyamin aka FLX , ReiserFS List Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com To: Alan Cox In-Reply-To: <1094164023.6163.2.camel@localhost.localdomain> List-Id: linux-fsdevel.vger.kernel.org On Thu, 02 Sep 2004 23:27:06 +0100, Alan Cox wrote: > On Iau, 2004-09-02 at 22:47, Jamie Lokier wrote: > > - Can the daemon keep track of _every_ file on my disk like this? > > That's more than a million files, and about 10^5 directories. > > dnotify would require the daemon to open all the directories. > > I'm not sure what inotify offers. > > This is currently a real issue for both desktop search and for virus > scanners. They want a "what changed and where" system wide (or at least > per namespace/mount). In the database work everything is a transaction and the transactions are logged. Reiser4 is fully atomic and logged. So to get the "what changed and where" you just process the transaction logs from the point of your last marked checkpoint. Hot backup db servers work this way too by listening to the transaction log stream. You don't need a daemon in this model. Jon Smirl jonsmirl@gmail.com