From: Luciano Rocha <luciano@lsd.di.uminho.pt>
To: Luke Diamand <luke@diamand.org>
Cc: git@vger.kernel.org
Subject: Re: git repo being corrupted?
Date: Mon, 7 Apr 2008 12:39:21 +0100 [thread overview]
Message-ID: <20080407113921.GA13667@bit.office.eurotux.com> (raw)
In-Reply-To: <47FA03C4.9030104@diamand.org>
[-- Attachment #1: Type: text/plain, Size: 795 bytes --]
On Mon, Apr 07, 2008 at 12:21:40PM +0100, Luke Diamand wrote:
> Luciano Rocha wrote:
>
> >> Linux 2.6.22-3-amd64
> >> File system is XFS
> >> git version 1.5.4.4
> >
> > 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.
I've lost /etc/passwd once with that behaviour...
Also, ext3 doesn't order the metadata and data updates with
data=writeback, but the default is data=ordered, which does.
I use xfs, but only when I know I have at least daily backups (or on
systems with UPS and with UPS initiated orderly shutdowns).
--
lfr
0/0
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-04-07 11:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-07 10:04 git repo being corrupted? Luke Diamand
2008-04-07 11:17 ` Luciano Rocha
2008-04-07 11:21 ` Luke Diamand
2008-04-07 11:39 ` Luciano Rocha [this message]
2008-04-07 16:15 ` David Brown
2008-04-07 16:47 ` Luciano Rocha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080407113921.GA13667@bit.office.eurotux.com \
--to=luciano@lsd.di.uminho.pt \
--cc=git@vger.kernel.org \
--cc=luke@diamand.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).