Re: Error "fatal: cannot pread pack file: Success"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, 28 Feb 2007, Bill Lear wrote:
> 
> Well, I went ahead and did that.  Here are the results:
> 
> % git clone --bare ~/devel/project
> [...]
> Resolving 2210 deltas.
> fatal: cannot pread pack file: Success [obj[0].offset=39393; obj[1].offset=39602; n=305; obj->size=0; rdy=0; len=207]
> fatal: index-pack died with error code 128

What's "n"? Is that the return value from pread? Or was that "rdy"?

We expect the return value of pread() to be exactly the size we asked for, 
namely "len". Anything else would be an error, and we know you're not 
getting a negative return value (since strerror() says "success") unless 
your pread() is *really* buggered.

But getting a return value of 0 would indicate that your pack-file is 
seriously corrupt (in particular, it would likely be truncated). And 
getting a return value of 305 is also weird beyond belief, since we only 
asked for 207 bytes.

One thing to do (maybe you did already) is to just verify that what you're 
cloning looks fine:

	cd ~/devel/project
	git fsck --full

just to be safe.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]