# Linus kernel tree corrupt?

7 messages from 2005-07-08 to 2005-07-10. Participants: Jon Smirl, Tony Luck, Russell King, Petr Baudis, H. Peter Anvin.
Thread: https://gitlist.dev/t/1174

## Jon Smirl, 2005-07-08 15:57

Subject: Linus kernel tree corrupt?
Message-ID: <9e473391050708085756bd463e@mail.gmail.com>
URL: https://gitlist.dev/e/9e473391050708085756bd463e%40mail.gmail.com

```
What happened in this session...

[jonsmirl@jonsmirl linus]$ cg update
11:52:32 URL:http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.g
it/refs/heads/master [41/41] -> "refs/heads/origin" [1]
progress: 34 objects, 102329 bytes
error: File 9cd17004869977026b473030ebb5b6fb71bfcebf
(http://www.kernel.org/pub/
scm/linux/kernel/git/torvalds/linux-2.6.git/objects/9c/d17004869977026b473030ebb
5b6fb71bfcebf) corrupt

Cannot obtain needed tree 9cd17004869977026b473030ebb5b6fb71bfcebf
while processing commit 0000000000000000000000000000000000000000.
cg-pull: objects pull failed
[jonsmirl@jonsmirl linus]$ cg update
11:53:26 URL:http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.g
it/refs/heads/master [41/41] -> "refs/heads/origin" [1]
Up to date.

Applying changes...
Branch already fully merged.
[jonsmirl@jonsmirl linus]$ cg pull
11:53:33 URL:http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.g
it/refs/heads/master [41/41] -> "refs/heads/origin" [1]
Up to date.
[jonsmirl@jonsmirl linus]$ cg diff
error: cannot read sha1_file for 9cd17004869977026b473030ebb5b6fb71bfcebf
fatal: unable to read tree object 7fd73e9f39bf6003cc3188a10426b62d8c47ab40
[jonsmirl@jonsmirl linus]$

-- 
Jon Smirl
jonsmirl@gmail.com

```

## Tony Luck, 2005-07-08 17:06

Subject: Re: Linus kernel tree corrupt?
Message-ID: <12c511ca05070810065db87043@mail.gmail.com>
URL: https://gitlist.dev/e/12c511ca05070810065db87043%40mail.gmail.com
In-Reply-To: <9e473391050708085756bd463e@mail.gmail.com>

```
On 7/8/05, Jon Smirl <jonsmirl@gmail.com> wrote:
> What happened in this session...

Linus has "packed" his GIT tree ... and now http-pull doesn't work. 
rsync still does (provided
you have a new enough cogito).

-Tony

```

## Russell King, 2005-07-09 10:43

Subject: Re: Linus kernel tree corrupt?
Message-ID: <20050709114303.B2175@flint.arm.linux.org.uk>
URL: https://gitlist.dev/e/20050709114303.B2175%40flint.arm.linux.org.uk
In-Reply-To: <12c511ca05070810065db87043@mail.gmail.com>

```
On Fri, Jul 08, 2005 at 10:06:09AM -0700, Tony Luck wrote:
> On 7/8/05, Jon Smirl <jonsmirl@gmail.com> wrote:
> > What happened in this session...
> 
> Linus has "packed" his GIT tree ... and now http-pull doesn't work. 
> rsync still does (provided
> you have a new enough cogito).

So does that mean we should ignore cogito's whinging about rsync being
deprecated?

-- 
Russell King

```

## Petr Baudis, 2005-07-09 11:55

Subject: Re: Linus kernel tree corrupt?
Message-ID: <20050709115530.GC26343@pasky.ji.cz>
URL: https://gitlist.dev/e/20050709115530.GC26343%40pasky.ji.cz
In-Reply-To: <20050709114303.B2175@flint.arm.linux.org.uk>

```
Dear diary, on Sat, Jul 09, 2005 at 12:43:03PM CEST, I got a letter
where Russell King <rmk@arm.linux.org.uk> told me that...
> On Fri, Jul 08, 2005 at 10:06:09AM -0700, Tony Luck wrote:
> > On 7/8/05, Jon Smirl <jonsmirl@gmail.com> wrote:
> > > What happened in this session...
> > 
> > Linus has "packed" his GIT tree ... and now http-pull doesn't work. 
> > rsync still does (provided
> > you have a new enough cogito).
> 
> So does that mean we should ignore cogito's whinging about rsync being
> deprecated?

Yes, please do. I deprecated rsync a day before Linus "broke" http-pull.
It's un-deprecated again for now in the latest Cogito.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
<Espy> be careful, some twit might quote you out of context..

```

## H. Peter Anvin, 2005-07-09 18:03

Subject: Re: Linus kernel tree corrupt?
Message-ID: <42D01174.4050501@zytor.com>
URL: https://gitlist.dev/e/42D01174.4050501%40zytor.com
In-Reply-To: <20050709115530.GC26343@pasky.ji.cz>

```
Petr Baudis wrote:
> 
> Yes, please do. I deprecated rsync a day before Linus "broke" http-pull.
> It's un-deprecated again for now in the latest Cogito.
> 

Presumably for packed repos you want to drop the --ignore-existing 
--whole-file options I assume?

Also, pulling with cogito-0.12:

cg-clone -s 
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/

I still get:

receiving file list ... done
master

sent 147 bytes  received 863 bytes  2020.00 bytes/sec
total size is 41  speedup is 0.04

receiving file list ... done
progress: 1929 objects, 5796451 bytes, 100% done
pack/pack-e3117bbaf6a59cb53c3f6f0d9b17b9433f0e4135.idx
pack/pack-e3117bbaf6a59cb53c3f6f0d9b17b9433f0e4135.pack

sent 42599 bytes  received 73373124 bytes  451789.06 bytes/sec
total size is 73178114  speedup is 1.00

receiving file list ... done
v2.6.11
v2.6.11-tree
v2.6.12
v2.6.12-rc2
v2.6.12-rc3
v2.6.12-rc4
v2.6.12-rc5
v2.6.12-rc6
v2.6.13-rc1
v2.6.13-rc2

sent 339 bytes  received 1802 bytes  4282.00 bytes/sec
total size is 410  speedup is 0.19
Missing object of tag v2.6.11... different source (obsolete tag?)
Missing object of tag v2.6.11-tree... different source (obsolete tag?)
Missing object of tag v2.6.12... different source (obsolete tag?)
Missing object of tag v2.6.12-rc2... different source (obsolete tag?)
Missing object of tag v2.6.12-rc3... different source (obsolete tag?)
Missing object of tag v2.6.12-rc4... different source (obsolete tag?)
Missing object of tag v2.6.12-rc5... different source (obsolete tag?)
Missing object of tag v2.6.12-rc6... different source (obsolete tag?)
Missing object of tag v2.6.13-rc1... different source (obsolete tag?)
Missing object of tag v2.6.13-rc2... different source (obsolete tag?)
New branch: 0109fd37046de64e8459f8c4f4706df9ac7cc82c
Cloned (origin 
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 
available as branch "origin")
Cloned to ./ (origin 
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 
available as branch "origin")

Is the "missing objects" thing spurious?

	-hpa

```

## Petr Baudis, 2005-07-10 15:23

Subject: Re: Linus kernel tree corrupt?
Message-ID: <20050710152309.GE24249@pasky.ji.cz>
URL: https://gitlist.dev/e/20050710152309.GE24249%40pasky.ji.cz
In-Reply-To: <42D01174.4050501@zytor.com>

```
Dear diary, on Sat, Jul 09, 2005 at 08:03:32PM CEST, I got a letter
where "H. Peter Anvin" <hpa@zytor.com> told me that...
> Petr Baudis wrote:
> >
> >Yes, please do. I deprecated rsync a day before Linus "broke" http-pull.
> >It's un-deprecated again for now in the latest Cogito.
> >
> 
> Presumably for packed repos you want to drop the --ignore-existing 
> --whole-file options I assume?

It _is_ unsafe for individual objects, and your packfile will be corrupt
if you break it in the middle and not have --whole-file turned on, I
assume. It would be ideal if we could make rsync allow resuming download
of the file if interrupted, but not under the final name but in that
hidden file it uses.

> sent 339 bytes  received 1802 bytes  4282.00 bytes/sec
> total size is 410  speedup is 0.19
> Missing object of tag v2.6.11... different source (obsolete tag?)
> Missing object of tag v2.6.11-tree... different source (obsolete tag?)
> Missing object of tag v2.6.12... different source (obsolete tag?)
> Missing object of tag v2.6.12-rc2... different source (obsolete tag?)
> Missing object of tag v2.6.12-rc3... different source (obsolete tag?)
> Missing object of tag v2.6.12-rc4... different source (obsolete tag?)
> Missing object of tag v2.6.12-rc5... different source (obsolete tag?)
> Missing object of tag v2.6.12-rc6... different source (obsolete tag?)
> Missing object of tag v2.6.13-rc1... different source (obsolete tag?)
> Missing object of tag v2.6.13-rc2... different source (obsolete tag?)
> New branch: 0109fd37046de64e8459f8c4f4706df9ac7cc82c
> Cloned (origin 
> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 
> available as branch "origin")
> Cloned to ./ (origin 
> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 
> available as branch "origin")
> 
> Is the "missing objects" thing spurious?

Yes, already fixed. Will release 0.12.1 soon.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
<Espy> be careful, some twit might quote you out of context..

```

## H. Peter Anvin, 2005-07-10 20:35

Subject: Re: Linus kernel tree corrupt?
Message-ID: <42D18685.1000307@zytor.com>
URL: https://gitlist.dev/e/42D18685.1000307%40zytor.com
In-Reply-To: <20050710152309.GE24249@pasky.ji.cz>

```
Petr Baudis wrote:
> 
> It _is_ unsafe for individual objects, and your packfile will be corrupt
> if you break it in the middle and not have --whole-file turned on, I
> assume. It would be ideal if we could make rsync allow resuming download
> of the file if interrupted, but not under the final name but in that
> hidden file it uses.
> 

I think if you just don't give it --partial you're fine (rsync always 
creates a second copy, --partial decides if a partial file should be 
thrown away or not.)

	-hpa

```
