Date: Thu, 11 Sep 2008 16:05:43 -0400 From: "L Campbell" <llc2w@virginia.edu> To: "Jille Timmermans" <jille@quis.cx> Cc: hackers@freebsd.org Subject: Re: Filtering items in readdir() with own fs Message-ID: <792298050809111305s5a4d4cbcxb56d7756b5af8879@mail.gmail.com> In-Reply-To: <48C978B7.3000803@quis.cx> References: <48C978B7.3000803@quis.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jille@quis.cx> wrote: > Hello all, > > <information skipable="yes"> > 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. > </introduction> > > <problem> > 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. > </problem> > > <question> > Can anyone give me a hint on where to start looking for code that could > be used with filtering functionality ? > Any file or function ? > </question> > > 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?792298050809111305s5a4d4cbcxb56d7756b5af8879>