Re: tree corrupted on disk quota full

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Thursday, January 11, 2007 - 11:31 am

On Thu, 11 Jan 2007, Michael S. Tsirkin wrote:

That's nasty, but something as simple a "git reset --hard ORIG_HEAD" 
should fix it (of course, if the disk-full happened earlier, or you've 
done some other reset or something else that over-write your ORIG_HEAD, 
you'd need to find the most recent commit that wasn't broken).

The good news is that there's no way your old data got corrupted. You just 
need to _find_ it (and normally ORIG_HEAD points to it, so it's trivial to 
find).

The suggestion to use "HEAD~1" is *not* a good one, simply because the 
pull (if it was a fast-forward) will not have HEAD~1 as your previous 
head: it will depend on how many commits you pulled. If you had reflog 
enabled, a "HEAD@{1}" might have worked (or "HEAD@{2}" as you already did 
the "git reset").

That said, clearly something didn't check the error return of a write() 
call. Some of that got fixed up recently, so it might even be fixed in 
current git already.

The most likely case (for a pull) is "git-unpack-objects", I guess.

		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:
tree corrupted on disk quota full, Michael S. Tsirkin, (Thu Jan 11, 5:57 am)
Re: tree corrupted on disk quota full, Andreas Ericsson, (Thu Jan 11, 6:40 am)
Re: tree corrupted on disk quota full, Andy Whitcroft, (Thu Jan 11, 6:43 am)
Re: tree corrupted on disk quota full, Michael S. Tsirkin, (Thu Jan 11, 6:59 am)
Re: tree corrupted on disk quota full, Andreas Ericsson, (Thu Jan 11, 7:28 am)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 11:31 am)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 12:19 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 1:03 pm)
Re: tree corrupted on disk quota full, Junio C Hamano, (Thu Jan 11, 2:02 pm)
Re: tree corrupted on disk quota full, Michael S. Tsirkin, (Thu Jan 11, 2:11 pm)
Re: tree corrupted on disk quota full, Andy Whitcroft, (Thu Jan 11, 2:17 pm)
Re: tree corrupted on disk quota full, Junio C Hamano, (Thu Jan 11, 2:27 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 2:50 pm)
Re: tree corrupted on disk quota full, Michael S. Tsirkin, (Thu Jan 11, 2:58 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 2:59 pm)
Better error messages for corrupt databases, Linus Torvalds, (Thu Jan 11, 3:09 pm)
Re: tree corrupted on disk quota full, Andy Whitcroft, (Thu Jan 11, 3:10 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 3:24 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 3:32 pm)
Re: tree corrupted on disk quota full, Michael S. Tsirkin, (Thu Jan 11, 3:39 pm)
Re: Better error messages for corrupt databases, Shawn O. Pearce, (Thu Jan 11, 5:40 pm)
Re: tree corrupted on disk quota full, Linus Torvalds, (Thu Jan 11, 5:42 pm)
Re: tree corrupted on disk quota full, Shawn O. Pearce, (Thu Jan 11, 5:51 pm)