From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf4eP-0002Ds-Jq for qemu-devel@nongnu.org; Wed, 22 May 2013 04:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf4eK-0003fq-BW for qemu-devel@nongnu.org; Wed, 22 May 2013 04:44:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf4eK-0003ff-3A for qemu-devel@nongnu.org; Wed, 22 May 2013 04:43:56 -0400 Message-ID: <519C8541.6060605@redhat.com> Date: Wed, 22 May 2013 10:43:45 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20130521214645.GA8863@redhat.com> <20130521220917.GA803@redhat.com> <87obc34fy3.fsf@blackfin.pond.sub.org> <20130522083732.GD7993@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , "Michael S. Tsirkin" , Markus Armbruster , qemu-devel@nongnu.org, Luiz Capitulino , Blue Swirl Il 22/05/2013 10:38, Peter Maydell ha scritto: > On 22 May 2013 09:37, Michael S. Tsirkin wrote: >> It's my fault for running -rc kernels all the time I guess, I get >> crashes kind of often, and losing more time on make clean >> on top of reboot annoys me. >> But we actually could make it robust, even against OS crash. Output to a >> temporary file then rename. This hack won't be needed then. > > I think that would be better implemented in the compiler/linker :-) > Alternatively, stop doing compiles on horribly unstable kernels. Any filesystem with delayed writes can do this if you have a power loss. But I agree that this patch doesn't solve the problem. For example, if you get stale files in the ccache directory even zapping the build directory won't do. Paolo