From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: NFSv4/pNFS possible POSIX I/O API standards Date: Tue, 5 Dec 2006 10:07:48 +0000 Message-ID: <20061205100748.GC5871@infradead.org> References: <1164950795.5761.25.camel@lade.trondhjem.org> <1164984094.5761.86.camel@lade.trondhjem.org> <20061203015203.GA5656@schatzie.adilger.int> <20061204073200.GB5637@schatzie.adilger.int> <1165245336.711.176.camel@lade.trondhjem.org> <4574C48A.8030007@mcs.anl.gov> <1165298200.5776.26.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Rob Ross , Andreas Dilger , Sage Weil , Christoph Hellwig , Brad Boyer , Anton Altaparmakov , Gary Grider , linux-fsdevel@vger.kernel.org Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:41735 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937372AbWLEKH6 (ORCPT ); Tue, 5 Dec 2006 05:07:58 -0500 To: Trond Myklebust Content-Disposition: inline In-Reply-To: <1165298200.5776.26.camel@lade.trondhjem.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Dec 05, 2006 at 12:56:40AM -0500, Trond Myklebust wrote: > On Mon, 2006-12-04 at 18:59 -0600, Rob Ross wrote: > > Hi all, > > > > I don't think that the group intended that there be an opendirplus(); > > rather readdirplus() would simply be called instead of the usual > > readdir(). We should clarify that. > > > > Regarding Peter Staubach's comments about no one ever using the > > readdirplus() call; well, if people weren't performing this workload in > > the first place, we wouldn't *need* this sort of call! This call is > > specifically targeted at improving "ls -l" performance on large > > directories, and Sage has pointed out quite nicely how that might work. > > ...and we have pointed out how nicely this ignores the realities of > current caching models. There is no need for a readdirplus() system > call. There may be a need for a caching barrier, but AFAICS that is all. I think Andreas mentioned that it is useful for clustered filesystems that can avoid additional roundtrips this way. That alone might now be enough reason for API additions, though. The again statlite and readdirplus really are the most sane bits of these proposals as they fit nicely into the existing set of APIs. The filehandle idiocy on the other hand is way of into crackpipe land.