From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abhijith Das Subject: Re: [1/8] readdir-plus system call - LSF/MM follow up Date: Tue, 28 May 2013 10:49:31 -0400 (EDT) Message-ID: <430086873.29636602.1369752571437.JavaMail.root@redhat.com> References: <516299A5.8030109@panasas.com> <51629A76.1020609@panasas.com> <1784100361.2097625.1365447760580.JavaMail.root@redhat.com> <426133125.28744581.1369412099242.JavaMail.root@redhat.com> <20130524194102.GF13647@lenny.home.zabbo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Boaz Harrosh , Steven Whitehouse , Steve Dickson , Jeff Layton , lsf-pc@lists.linux-foundation.org, linux-fsdevel , Ganesha NFS List , Frank S Filz , "J. Bruce Fields" , Jim Lieb , Venkateswararao Jujjuri , DENIEL Philippe , Dave Chinner To: Zach Brown Return-path: Received: from mx4-phx2.redhat.com ([209.132.183.25]:58754 "EHLO mx4-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934374Ab3E1OvI (ORCPT ); Tue, 28 May 2013 10:51:08 -0400 In-Reply-To: <20130524194102.GF13647@lenny.home.zabbo.net> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Zack, thanks for taking a peek at the patches. > > Some quick things that struck me as I glanced through the patches: > > - Please post the patch series, don't make us go digging through > bugzilla. Duly noted. I wasn't hoping for my patches to be a serious submission, just something I wrote up as a POC. I was mainly looking to (re)start a conversation about readdirplus to see what's the best way to go about doing this. Your point applies nonetheless; I'll post my patchset again, properly. > > - Don't use variable size types in the ABI or you'll have to add compat_ > wrappers to fix it all up on the stack when going between 32bit > userspace and 64bit kernelspace. This is going to be especially nasty > if this is a giant sequence of variable length blobs. > > +struct linux_xdirent { > + unsigned long xd_ino; > + char xd_type; > + unsigned long xd_off; > + struct xstat xd_stat; > + unsigned long xd_reclen; > + struct xdirent_blob xd_blob; > +}; > > Notice how, in contrast, David was careful to use naturally aligned > fixed-width types in his xstat patch. > Yes, you're right. I'll fix this. > - z Cheers! --Abhi