Thread (8 messages) 8 messages, 4 authors, 2016-06-15

Re: broken repo after power cut

From: Christoph Hellwig <hch@infradead.org>
Date: 2015-06-21 13:59:03
Also in: linux-fsdevel

On Sun, Jun 21, 2015 at 03:07:41PM +0200, Richard Weinberger wrote:
quoted
quoted
To me it seems like git was creating a new object and got interrupted
before fsync/fdatasync'ing it.
As the object was referenced before syncing the data to disk the repo broke.
Git doesn't fsync by default, and because of that I've seen similar
data losses on ext4/xfs/btrfs.

You can set the core.fsyncobjectfiles to mitigate it, but even with
that I've seen corrupted index files.

Note that I've been mostly on old git versions from various distros,
so in case this was fixed recently I'll take everything I said back.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help