From: Keir Fraser Subject: Re: Fix core dumps of guests > 2 GB in size on i386 Date: Fri, 17 Nov 2006 09:52:15 +0000 Message-ID: References: <20061115220221.GN17466@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061115220221.GN17466@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Daniel P. Berrange" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 15/11/06 22:02, "Daniel P. Berrange" wrote: > The attached patch adds the O_LARGEFILE flag when opening the file. It > is also neccessary to add additional CFLAGS & LDFLAGS to enable use of > the POSIX Largefile standard. There are two ways to enable LFS support, > in implicit mode all types, functions & macros are automatically changed > to the 64 bit variants at compile time - this however changes the ABI > contract - eg size_t is now 64-bits instead of 32. I like the implicit method. I think it's unlikely to bite us. A lot of tools subdirs are defining _FILE_OFFSET_BITS=64 anyway (and not using getconf!). I'll provide a portable common CFLAGS/LDFLAGS addition in tools/Rules.mk. -- Keir