Il 22/05/2013 10:38, Peter Maydell ha scritto: > On 22 May 2013 09:37, Michael S. Tsirkin <m...@redhat.com> 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