From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bruce Fields" Subject: Re: [Lsf-pc] [1/8] readdir-plus system call - LSF/MM follow up Date: Tue, 4 Jun 2013 11:52:10 -0400 Message-ID: <20130604155209.GC2614@pad.fieldses.org> References: <516299A5.8030109@panasas.com> <1849331.etDWltRNrI@jlieb-e6410> <6063990.7MGE7UW7Zr@jlieb-e6410> <20130529060609.434ac247@corrin.poochiereds.net> <20130529140456.GA28385@pad.fieldses.org> <20130604153848.GA26106@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff Layton , lsf-pc@lists.linux-foundation.org, Zach Brown , Abhijith Das , Dave Chinner , Ganesha NFS List , Steve Dickson , linux-fsdevel , DENIEL Philippe , Boaz Harrosh , Frank S Filz , Jim Lieb , Venkateswararao Jujjuri , Steven Whitehouse To: Christoph Hellwig Return-path: Received: from mx1.redhat.com ([209.132.183.28]:2520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802Ab3FDPxi (ORCPT ); Tue, 4 Jun 2013 11:53:38 -0400 Content-Disposition: inline In-Reply-To: <20130604153848.GA26106@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jun 04, 2013 at 08:38:48AM -0700, Christoph Hellwig wrote: > On Wed, May 29, 2013 at 10:04:56AM -0400, J. Bruce Fields wrote: > > An odd exception: in the presence of "posix" acls, "ls -l" requests an > > acl for every entry, so it can decide whether or not to add a "+" after > > the mode (which indicates the presence of a non-trivial acl.) Judging > > from http://www.bestbits.at/richacl/example.html, the same is intended > > (but not yet implemented) for richacls. > > > > Maybe if that case were common, there'd be some advantage to ls being > > able to do a readdir plus to the nfs client that the nfs client could > > translate into a single readdir to the server? > > > > But I hope it doesn't come to that. > > Having a xstat flag that a filesystem can set meaning there is no > additional security information would be way more efficient for the > common case. I think that might make sense. (Though I can't claim any evidence of an actual problem here. Just that if people are counting the stat's on "ls -l" then may find out they run into those extra getxattrs too.) --b.