From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: Re: [PATCH 00/32] VFS based Union Mount (V3) Date: Tue, 19 May 2009 15:10:55 +0200 Message-ID: <20090519131055.GQ16526@bolzano.suse.de> References: <1242662968-11684-1-git-send-email-jblunck@suse.de> <200905191354.08701.arnd@arndb.de> <20090519121504.GO16526@bolzano.suse.de> <200905191421.21026.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, bharata@in.ibm.com, dwmw2@infradead.org, mszeredi@suse.cz, vaurora@redhat.com To: Arnd Bergmann Return-path: Received: from cantor2.suse.de ([195.135.220.15]:56176 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754825AbZESNKz (ORCPT ); Tue, 19 May 2009 09:10:55 -0400 Content-Disposition: inline In-Reply-To: <200905191421.21026.arnd@arndb.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 19, Arnd Bergmann wrote: > > So what would go wrong if you only made them persistent for writable file > systems, but allowed fallthrough dentries to be discarded for read-only > file systems? As long as the lower layers don't change, you should still > be able to reconstruct the same dentries every time you do a readdir, right? > This can work if you do this when the last file descriptor on the directory is closed. I have a similar patch around for tmpfs readdir (the SLES8 glibc is seeking on readdir, so it broke some of our build servers that use tmpfs). One idea would be to separate the "fallthru in tmpfs" handling into its own library so that it can be shared by filesystems. This would become something similar to the On-Disk-Format (ODF) approach that Erez Zadok followed with UnionFS.