From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 20:31:35 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCDB0106564A for ; Thu, 11 Sep 2008 20:31:35 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from fork7.mail.virginia.edu (fork7.mail.Virginia.EDU [128.143.2.177]) by mx1.freebsd.org (Postfix) with ESMTP id 9615B8FC0A for ; Thu, 11 Sep 2008 20:31:35 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from localhost (localhost [127.0.0.1]) by fork7.mail.virginia.edu (Postfix) with ESMTP id 37BA11F517A for ; Thu, 11 Sep 2008 16:05:46 -0400 (EDT) Received: from fork7.mail.virginia.edu ([127.0.0.1]) by localhost (fork7.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21967-02 for ; Thu, 11 Sep 2008 16:05:46 -0400 (EDT) Received: from mail-gx0-f10.google.com (mail-gx0-f10.google.com [209.85.217.10]) by fork7.mail.virginia.edu (Postfix) with ESMTP id 129561F5168 for ; Thu, 11 Sep 2008 16:05:46 -0400 (EDT) Received: by mail-gx0-f10.google.com with SMTP id 3so10686143gxk.0 for ; Thu, 11 Sep 2008 13:05:46 -0700 (PDT) Received: by 10.86.66.19 with SMTP id o19mr2454003fga.34.1221163543690; Thu, 11 Sep 2008 13:05:43 -0700 (PDT) Received: by 10.86.31.14 with HTTP; Thu, 11 Sep 2008 13:05:43 -0700 (PDT) Message-ID: <792298050809111305s5a4d4cbcxb56d7756b5af8879@mail.gmail.com> Date: Thu, 11 Sep 2008 16:05:43 -0400 From: "L Campbell" To: "Jille Timmermans" In-Reply-To: <48C978B7.3000803@quis.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C978B7.3000803@quis.cx> X-UVA-Virus-Scanned: by amavisd-new at fork7.mail.virginia.edu Cc: hackers@freebsd.org Subject: Re: Filtering items in readdir() with own fs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 20:31:36 -0000 Just as a random comment, if you wanted to grep over a svn-managed directory hierarchy, you could simply do -- find . \! -ipath '*/.svn*' | xargs grep -H search_string On Thu, Sep 11, 2008 at 3:59 PM, Jille Timmermans wrote: > Hello all, > > > I am trying to create a filesystem that works exactly like nullfs, but > hides all .svn dirs (and contents) (Yes, I started with svn cp). > I've got it working so far that it denies that the dirs and contents > exist (grep isn't complaining; so I can finally grep -r through the source). > But it would be nice if I can also hide the .svn dirs in dir listings. > > > > I have been looking through a few existing filesystems (unionfs, > fdescfs, xfs, devfs). > None gave me a good way for hiding specific entries in the listing. > With some help of unionfs I have created a direct-pass-through using > VOP_READDIR(), but I can't filter it with that. > I tried using some xfs code, but didn't get any result with that. > > > > Can anyone give me a hint on where to start looking for code that could > be used with filtering functionality ? > Any file or function ? > > > Thanks in advance, > -- Jille > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >