From mboxrd@z Thu Jan 1 00:00:00 1970 From: hooanon05@yahoo.co.jp Subject: Re: [RFC PATCH 0/2] Union Mount: Directory listing in glibc Date: Thu, 01 May 2008 10:39:14 +0900 Message-ID: <7096.1209605954@jrobl> References: Your message of "Wed, 30 Apr 2008 11:37:10 +0530." <200804301635.m3UGZ7gn006259@agora.fsl.cs.sunysb.edu> Cc: "NAGABHUSHAN BS" , libc-alpha@sourceware.org, "Jan Blunck" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, "Christoph Hellwig" , "Ulrich Drepper" , "Mingming Cao" , "Dave Hansen" , "Trond Myklebust" , bharata@linux.vnet.ibm.com, "David Woodhouse" To: Erez Zadok Return-path: Received: from vsmtp04.dti.ne.jp ([202.216.231.139]:56318 "EHLO vsmtp04.dti.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752779AbYEABsU (ORCPT ); Wed, 30 Apr 2008 21:48:20 -0400 In-Reply-To: <200804301635.m3UGZ7gn006259@agora.fsl.cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Erez Zadok: > Here's one idea: > > 1. Your main data structure is a linear array of struct dirents. You ::: All these points are very similar to the actual implementation in AUFS, except 'Optimization 2: decide memory size by stat().' - the size may not be enough for storing every dirent, it depends upon the filesystem's implementation. - the size may be a block size which can be larger than page size even if it is a empty dir, also it depends upon the filesystem. Junjiro Okajima