From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Dilger Subject: Re: BeFS Date: Thu, 17 Jul 2008 15:12:42 -0600 Message-ID: <20080717211242.GC6239@webber.adilger.int> References: <530d01580807170455h4650765cw496818ff838b4d5b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Cc: linux-fsdevel@vger.kernel.org To: "Diego ." Return-path: Received: from sca-es-mail-1.Sun.COM ([192.18.43.132]:38915 "EHLO sca-es-mail-1.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752827AbYGQVMu (ORCPT ); Thu, 17 Jul 2008 17:12:50 -0400 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m6HLClwt012823 for ; Thu, 17 Jul 2008 14:12:48 -0700 (PDT) Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K4600J014L1IM00@fe-sfbay-09.sun.com> (original mail from adilger@sun.com) for linux-fsdevel@vger.kernel.org; Thu, 17 Jul 2008 14:12:47 -0700 (PDT) In-reply-to: <530d01580807170455h4650765cw496818ff838b4d5b@mail.gmail.com> Content-disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Jul 17, 2008 13:55 +0200, Diego . wrote: > My question comes when i tried to finish befs port ( write mode ) on > the kernel sources.. > How can i make the extensible attributes and live queries available to > linux user/programs? > > Is there some way to register this services? I'm guessing that xattrs (via sys_{get,set,list}xattr(), used by user tools getfattr/setfattr/libattr) will get you much of what you want. In order to notify applications about "live queries" you may want to look at the dnotify or inotify mechanisms, having an application get a notification on a "virtual search" file, or similar. Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc.