From: Bill Lear Subject: Re: Error "fatal: cannot pread pack file: Success" Date: Wed, 28 Feb 2007 10:23:49 -0600 Message-ID: <17893.44181.129918.669187@lisa.zopyra.com> References: <17892.64236.443170.43061@lisa.zopyra.com> <20070228035713.GC5597@spearce.org> <20070228044719.GA6068@spearce.org> <17893.40847.313519.283218@lisa.zopyra.com> <17893.42063.186763.291346@lisa.zopyra.com> <20070228155412.GC5479@spearce.org> <17893.43522.511785.121778@lisa.zopyra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Shawn O. Pearce" , git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Feb 28 17:23:57 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMRaq-0004xU-Lz for gcvg-git@gmane.org; Wed, 28 Feb 2007 17:23:53 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbXB1QXu (ORCPT ); Wed, 28 Feb 2007 11:23:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751997AbXB1QXu (ORCPT ); Wed, 28 Feb 2007 11:23:50 -0500 Received: from mail.zopyra.com ([65.68.225.25]:60612 "EHLO zopyra.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751982AbXB1QXu (ORCPT ); Wed, 28 Feb 2007 11:23:50 -0500 Received: (from rael@localhost) by zopyra.com (8.11.6/8.11.6) id l1SGNnt24548; Wed, 28 Feb 2007 10:23:49 -0600 In-Reply-To: <17893.43522.511785.121778@lisa.zopyra.com> X-Mailer: VM 7.18 under Emacs 21.1.1 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: On Wednesday, February 28, 2007 at 10:12:50 (-0600) Bill Lear writes: >On Wednesday, February 28, 2007 at 10:54:12 (-0500) Shawn O. Pearce writes: >>Bill Lear wrote: >>> fatal: cannot pread pack file: Success [n=0; rdy=0; len=207] >>> fatal: index-pack died with error code 128 >>> fetch-pack from '/home/rael/devel/project/.git' failed. >> >>Bwhat?!? Can you print out the offset and the size of the packfile? >>It looks like your pack has been truncated? Or is this just your >>filesystem saying "nahh, I'm not going to give you that data right >>now, try again later and maybe I will"? > >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? > >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 Above has n and obj->size switched, sorry. Bill