From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 1 16:47:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42A2716A4CE for ; Tue, 1 Feb 2005 16:47:05 +0000 (GMT) Received: from home.dino.sk (home.dino.sk [213.215.74.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD81E43D41 for ; Tue, 1 Feb 2005 16:47:03 +0000 (GMT) (envelope-from milan@dino.sk) Received: from [127.0.0.1] ([127.0.0.1]) by home.dino.sk with esmtp; Tue, 01 Feb 2005 17:47:01 +0100 id 0000E90D.41FFB285.000030F1 From: Milan Obuch To: freebsd-hackers@freebsd.org Date: Tue, 1 Feb 2005 17:46:52 +0100 User-Agent: KMail/1.6.2 References: <41FF6869.5060709@rojer.pp.ru> <41FF8B00.2010208@fer.hr> <41FFA801.8070307@rojer.pp.ru> In-Reply-To: <41FFA801.8070307@rojer.pp.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200502011746.52908.milan@dino.sk> X-Mailman-Approved-At: Wed, 02 Feb 2005 13:36:50 +0000 Subject: Re: Question: tracking filesystem changes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 16:47:05 -0000 On Tuesday 01 February 2005 17:02, Deomid Ryabkov wrote: > >>>> This could be a custom filesystem wrapper for UFS that would report > >>>> name of the file/directory being changed. > >>> > >>> Couldn't you use kqueue system to monitor the directory-file? > >> > >> I could, if I hadn't near 10 millions of them. > > > > Hm. I meant monitoring the directory itself, as a file, then parsing > > the directory list to determine what has changed. But with 10M files, > > probably nothing would work... > > these are 10M of static documents, the daily change is minmal. > the question is: where it is the appropriate place to collect those > changes? the right way seems to implement a customs filesystem, but would > it possible to obtain a full path at that level? > Did you consider using fam (file alteration monitor) from ports? Milan