From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Drepper Subject: Re: NFSv4/pNFS possible POSIX I/O API standards Date: Wed, 06 Dec 2006 09:42:55 -0800 Message-ID: <4577011F.6040107@redhat.com> References: <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> <20061205100748.GC5871@infradead.org> <4575E9B0.3060908@mcs.anl.gov> <20061205220538.GA1988@infradead.org> <45760702.6040805@redhat.com> <20061206100614.GX5937@schatzie.adilger.int> <4576FBB0.2070704@redhat.com> <4576FD78.4040603@mcs.anl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Christoph Hellwig , Trond Myklebust , Sage Weil , Brad Boyer , Anton Altaparmakov , Gary Grider , linux-fsdevel@vger.kernel.org Return-path: Received: from mx1.redhat.com ([66.187.233.31]:44177 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936934AbWLFRoD (ORCPT ); Wed, 6 Dec 2006 12:44:03 -0500 To: Rob Ross In-Reply-To: <4576FD78.4040603@mcs.anl.gov> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Rob Ross wrote: > File size is definitely one of the more difficult of the parameters,=20 > either because (a) it isn't stored in one place but is instead derive= d,=20 > or (b) because a lock has to be obtained to guarantee consistency of = the=20 > returned value. OK, and looking at the man page again, it is already on the list in the= =20 old proposal and hence optional. I've no problem with that. > I can't speak for everyone, but "ls" is the #1 consumer as far as I a= m=20 > concerned. So a syscall for ls alone? I think this is more a user problem. For normal plain old 'ls' you get= =20 by with readdir. For 'ls -F' and 'ls --color' you mostly get by with=20 readdir+d_type. If you cannot provide d_type info the readdirplus=20 extension does you no good. For the cases when an additional stat is=20 needed (for symlinks, for instance, to test whether they are dangling)=20 readdirplus won't help. So, readdirplus is really only useful for 'ls -l'. But then you need=20 st_size and st_?time. So what is gained with readdirplus? --=20 =E2=9E=A7 Ulrich Drepper =E2=9E=A7 Red Hat, Inc. =E2=9E=A7 444 Castro S= t =E2=9E=A7 Mountain View, CA =E2=9D=96 - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html