Re: git repo being corrupted?
- From
- Luciano Rocha <luciano@lsd.di.uminho.pt>
- Date
- Apr 7, 2008, 16:47 UTC
- Message-ID
- <20080407164738.GA4053@bit.office.eurotux.com>
- In-Reply-To
- <20080407161525.GA25894@old.davidb.org>
On Mon, Apr 07, 2008 at 09:15:25AM -0700, David Brown wrote:
Show 10 quoted lines
> On Mon, Apr 07, 2008 at 12:39:21PM +0100, Luciano Rocha wrote: > > >> > You're using XFS. Did you have a power fail in the recent past? > >> How did you know? > > > > XFS doesn't order metadata writes with data writes, so if the power > > fails, it can find an update in the journal but the data wasn't written. > > Then it fills the file with zeroes to the new size. > > This behavior should be a lot better for recent kernels.
To be fair, it hasn't happened to me lately. But I haven't lost power often, so I can't say it's fixed. ;)
> xfs does even better with write barriers. But any file change that is more > than one write can be corrupted or split by an inopportune powerdown.
Maybe, but I'm still waiting for barrier support through device-mapper.
-- lfr 0/0