From: Christoph Hellwig Subject: Re: [PATCH kNFSd 4 of 4] Use llseek instead of f_pos= for directory seeking. Date: Mon, 16 Aug 2004 10:21:02 +0100 Sender: nfs-admin@lists.sourceforge.net Message-ID: <20040816102102.A9177@infradead.org> References: <20040816135256.9819.patches@notabene> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1Bwdg5-0004o0-Mi for nfs@lists.sourceforge.net; Mon, 16 Aug 2004 02:21:17 -0700 Received: from imladris.demon.co.uk ([193.237.130.41] helo=phoenix.infradead.org) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bwdg5-0000H0-1i for nfs@lists.sourceforge.net; Mon, 16 Aug 2004 02:21:17 -0700 To: NeilBrown In-Reply-To: ; from neilb@cse.unsw.edu.au on Mon, Aug 16, 2004 at 01:58:43PM +1000 Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: On Mon, Aug 16, 2004 at 01:58:43PM +1000, NeilBrown wrote: > > nfsd currently just sets f_pos when seeking in a directory. > This bypasses any checking and other handling that a filesystem > might want to do. > > So instead, we use 'llseek' copied out of fs/read_write.c > use that, both to seek at the start, and the find the new position at > the end. llseek from fs/read_write.c has been renamed to vfs_llseek and you can just use it now. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs