From: Bill Lear Date: Wed, 28 Feb 2007 16:40:15 GMT Subject: Re: Error "fatal: cannot pread pack file: Success" Message-ID: <17893.45167.334963.409569@lisa.zopyra.com> In-Reply-To: <20070228163256.GD5479@spearce.org> On Wednesday, February 28, 2007 at 11:32:56 (-0500) Shawn O. Pearce writes: >Bill Lear wrote: >> >The code has this: >> > >> > unsigned long from = obj[0].offset + obj[0].hdr_size; >> > unsigned long len = obj[1].offset - from; >> > >> >by "offset", do you want obj[0].offset and obj[1].offset? >> > >> >How do I get the size of the packfile? Is it obj->size? > >I meant something like this: >... % cd ~/devel/project % git-fsck --full % cd - % git clone --bare ~/devel/project [...] fatal: cannot pread pack file: Success from=39395, packfile size=2 fatal: index-pack died with error code 128 And, again, this works fine on my non-mounted file system: % cd ~/test % git clone --bare ~/devel/project Initialized empty Git repository in /home/blear/test/project/ remote: Generating pack... remote: Done counting 4594 objects. remote: Deltifying 4594 objects. remote: 100% (4594/4594) done Indexing 4594 objects. remote: Total 4594 (delta 2210), reused 4591 (delta 2209) 100% (4594/4594) done Resolving 2210 deltas. 100% (2210/2210) done Bill