From: Christoph Hellwig Subject: Re: [PATCH] cifs: add mount option to handle stat() failures by 32-bit apps Date: Tue, 11 Jan 2011 05:53:37 -0500 Message-ID: <20110111105337.GA23753@infradead.org> References: <4D2C33A5.9000801@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Steve French , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jeff Layton To: Suresh Jayaraman Return-path: Content-Disposition: inline In-Reply-To: <4D2C33A5.9000801-l3A5Bk7waGM@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Tue, Jan 11, 2011 at 04:10:37PM +0530, Suresh Jayaraman wrote: > ..compiled without LFS support, but running on 64-bit kernel. > > Currently, when a broken (compiled without LFS support) 32-bit application on > a 64-bit kernel tries to do a stat(), it fails with -EOVERFLOW error. This > problem happens because the 32-bit application is unable to fit the huge > 64-bit inode number in its target structure field. This is nothing cifs specific. Please do it in a generic way (e.g. sysctl) in the VFS.