Danek?
        I know that package  have many files    in opensolaris IPS .and every 
file's name is the same to its sha1sum hex value.
    file c41696164a53a1c4ee38acbc7593a9a0b9d4fce5 
chash=a37ea1a7157fe2565e9b6221b07724e4d75929da elfarch=i386 elfbits=32 
elfhash=48aff52a291dfdefa86b92d12f1d3a9394067f53 group=bin mode=0555 owner=root 
path=usr/bin/ipcrm pkg.csize=5217 pkg.size=13444
I know how to compute csize and chash with my method(I don't know if it is 
right).
my result is the same with above mention.

But some file like:
   grub's splash.xpm.gz 
        file 8ccd759e9fdb0bbae20aa259e9fe35c536ee8bda 
chash=ff984d5e01af0caf4252438cccb18ecbb21f21c1 group=sys mode=0644 owner=root 
path=boot/grub/splash.xpm.gz pkg.csize=47363 pkg.size=47330

I know  shasunw value 8ccd759e9fdb0bbae20aa259e9fe35c536ee8bda is a file 
name,file's orignal name is splash.xpm.gz .that's to say  
splash.xpm.gz 's sha1sum is  8ccd759e9fdb0bbae20aa259e9fe35c536ee8bda .Then I 
get a wrong result ,it's not   chash=ff984d5e01af0caf4252438cccb18ecbb21f21c1 .
So I want to know the detail arithmetic and compute steps. 
  Thanks,


------------------                               
jklyekai
2008-12-18

-------------------------------------------------------------
????Danek Duvall
?????2008-12-17 22:16:48
????jklyekai
???pkg-discuss; caiman-discuss at opensolaris.org
???Re: [pkg-discuss] what's the chash and pkg.csize, and how tocompute them?

On Wed, Dec 17, 2008 at 06:23:38PM +0800, jklyekai wrote:

> In the http://pkg.opensolairs.org when I click a package I will see some
> files like below. I know that file's name is its  sha1sum But chash is
> what?  and  pkg.csize ? how to compute it?

chash and csize are the hash and size of the gzip-compressed file as it
comes over the wire.  This lets us verify the hash of the file on the
client without having to uncompress it, and it lets us have a more accurate
download meter than if we were to use the uncompressed size.

Danek

Reply via email to