git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] fsck: do not canonicalize modes in trees we are checking

From
BABen Aveling <bena.001@optusnet.com.au>
Date
Oct 19, 2014, 12:40 UTC
Message-ID
<5443B136.4060009@optusnet.com.au>
In-Reply-To
<20141016002021.GA27509@peff.net>
On 16/10/14 11:20, Jeff King wrote:
Show 5 quoted lines
> On Thu, Oct 16, 2014 at 10:46:19AM +1100, Ben Aveling wrote:
>
> I have a corrupt repository, and every time I run fsck, it
> reports one corrupt object, then stops.
> Corrupt how? Bit-corruption, or a malformed object?
Bit-corruption, in multiple places.
> If you have a non-corrupted version of the repository, the simplest 
> thing is to just pack it, copy the resulting packfile to the broken 
> repository (again, using "cp" or "rsync" and not git), and then repack 
> there. 

This seems to have worked. I also had to move away the existing .idx and copy in a new one before it was happy.

I'm not sure that what I've done is so different from simply copying the other version of the repository - there shouldn't have been anything in the corrupt version that wasn't also in the good one. But any rate, it worked.

Thanks, Ben
Previous: Jeff KingNext: Jeff King
Message 7 of 8 in “fsck: do not canonicalize modes in trees we are checking”
  1. fsck: do not canonicalize modes in trees we are checkingJeff King, Sep 23, 2014
  2. Edward ThomsonSep 23, 2014
  3. Jeff KingSep 23, 2014
  4. Ben AvelingOct 12, 2014
  5. Jeff KingOct 14, 2014
  6. Jeff KingOct 16, 2014
  7. Ben AvelingOct 19, 2014
  8. Jeff KingOct 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.