From owner-freebsd-fs@FreeBSD.ORG Fri Jun 1 14:08:25 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B8E116A46D for ; Fri, 1 Jun 2007 14:08:25 +0000 (UTC) (envelope-from micron@bglug.it) Received: from jack.tiscali.it (jack.tiscali.it [213.205.33.53]) by mx1.freebsd.org (Postfix) with ESMTP id F332313C43E for ; Fri, 1 Jun 2007 14:08:24 +0000 (UTC) (envelope-from micron@bglug.it) Received: from [10.8.0.10] (84.220.184.158) by jack.tiscali.it (7.2.079) id 465A9B13000D9415 for freebsd-fs@freebsd.org; Fri, 1 Jun 2007 15:57:18 +0200 From: Flavio Castelli To: freebsd-fs@freebsd.org Date: Fri, 1 Jun 2007 15:57:13 +0200 User-Agent: KMail/1.9.5 X-Face: $Txq`+~>k4|^/-x\@oJeZW!JU; 1g78H("lLgtOyrD\&:=?utf-8?q?uz=3AGv=7E=0A=09=5DHV/7cx=3DTaNUwE?=>(tllad(pN*f+LRB(:{k~/[R00SWX@=?utf-8?q?=5DywcKa=0A=094=7DX?=(}gp/P"nfEAUQL(:G1a]n\'bQUC MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706011557.13769.micron@bglug.it> Subject: file system notifications X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 14:08:25 -0000 Hello to all, I develop an open-source desktop searching program called=20 Strigi. Since actually the program supports file system notifications only= =20 under Linux (using inotify), I would like to add this feature also to freeB= SD=20 users. I looked at kqueue and I played with it a bit, but unfortunately I discover= ed=20 it isn't enough for me. That's what I have to do: watch a set of directories and get notifications = for=20 some kind of event that happens into these directories. The main problems with kqueue are: =2D I have to open tons of file descriptors =2D struct kevent doesn't tell event's main character (the file/dir that ha= s=20 been created/modified/deleted/...) Searching around I discovered that darwin has fsevents (a device used also = by=20 Spotlight), but it isn't available under freeBSD (am I right?). You can see= =20 its sources here [1] and here [2]. So, what can I use for monitoring file system events under freeBSD? Thanks in adance Flavio [1] http://fxr.watson.org/fxr/source/bsd/sys/fsevents.h?v=3DDARWIN8 [2] http://fxr.watson.org/fxr/source/bsd/vfs/vfs_fsevents.c?v=3DDARWIN8 =2D-=20 |=A7 micron<- ICQ #118796665 |=A7 GPG Key: |=A7 ~ Keyserver: pgp.mit.edu |=A7 ~ KeyID: 6D632BED ~ "Progress is merely a realisation of utopias" ~