Date: Thu, 11 Sep 2008 21:59:51 +0200 From: Jille Timmermans <jille@quis.cx> To: hackers@freebsd.org Subject: Filtering items in readdir() with own fs Message-ID: <48C978B7.3000803@quis.cx>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48C978B7.3000803>