Re: Recovering from repository corruption

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Tuesday, June 10, 2008 - 2:09 pm

On Tue, 10 Jun 2008, Denis Bueno wrote:

Ahh, ok. Yes, we should probably re-think our 'grafts' file thing, or at 
least not document it, because it's actually a wondeful way to just cause 
more corruption by hiding things (ie if you clone a repo with a grafts 
file, the result will now have neither the grafts file _nor_ the state 
that was hidden by it, so the result is guaranteed to be corrupt).

But that explains why your clone worked, and why the resulting repo had 
different corruption - it avoided the original corruption, but because of 
the grafts file it avoided it by just not having those commits at all..


No, almost all the interest is basically in how the whole repo ties 
together. The individual corrupt files may be interesting, though, ie from 
your original report:

    error: 320bd6e82267b71dd2ca7043ea3f61dbbca16109: object corrupt or missing
    error: 4d0be2816d5eea5ae2b40990235e2225c1715927: object corrupt or missing

then *if* you have the files

	.git/objects/32/0bd6e82267b71dd2ca7043ea3f61dbbca16109
	.git/objects/4d/0be2816d5eea5ae2b40990235e2225c1715927

then those two files are interesting in themselves (most likely they are 
not there at all, or are zero-sized, but if you have them, please post 
them).

And as this was a result of a real filesystem crash, it *is* possible that 
you have something in the /lost+found directory for that filesystem. If 
so, those missing files may be found there.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 10:26 am)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 10:55 am)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 12:38 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 12:40 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 12:42 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 12:59 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 1:03 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 1:14 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 1:23 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 1:28 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 1:35 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 2:09 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 2:22 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 2:27 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 2:48 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:09 pm)
Re: Recovering from repository corruption, Tarmigan, (Tue Jun 10, 3:25 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:41 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 3:45 pm)
Re: Recovering from repository corruption, Junio C Hamano, (Tue Jun 10, 3:52 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 4:00 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 5:43 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 6:39 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 6:47 pm)
To graft or not to graft... (Re: Recovering from repositor ..., Stephen R. van den Berg, (Wed Jun 11, 4:21 pm)
Re: To graft or not to graft... (Re: Recovering from repos ..., Stephen R. van den Berg, (Thu Jun 12, 5:20 am)