Re: git repo being corrupted?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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.

David
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux