<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>素心如何天上月 &#187; IPS</title> <atom:link href="http://yongsun.me/tag/ips/feed/" rel="self" type="application/rss+xml" /><link>http://yongsun.me</link> <description>Yong Sun&#039;s Blog</description> <lastBuildDate>Sat, 17 Dec 2011 16:17:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>what&#039;s the &#039;chash&#039; in ips manifest?</title><link>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whats-the-chash-in-ips-manifest</link> <comments>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/#comments</comments> <pubDate>Wed, 10 Dec 2008 09:51:51 +0000</pubDate> <dc:creator>yongsun</dc:creator> <category><![CDATA[OSS]]></category> <category><![CDATA[IPS]]></category> <category><![CDATA[OpenSolaris]]></category> <guid
isPermaLink="false">http://yongsun.wordpress.com/2008/12/10/whats-the-chash-in-ips-manifest/</guid> <description><![CDATA[chash: the sha1 hash of the compressed file. While if you manually compress the file with gzip -n -9, you would find the sha1 value is still different with the one in the manifest file. By looking into ips/pkg's source &#8230; <a
href="http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>chash: the sha1 hash of the compressed file.</p><p>While if you manually compress the file with <code>gzip -n -9</code>, you would find the sha1 value is still different with the one in the manifest file. By looking into ips/pkg's source code, it turns out that the head used in ips/pkg is a little different with the one <code>gzip(1)</code> generated,</p><p><code>-0000000 1f 8b 08 00 00 00 00 00 02 <span
style="color:#ff0000;">ff</span><br
/>+0000000 1f 8b 08 00 00 00 00 00 02 <span
style="color:#0003ff;">03</span></code></p><p>The last byte is to indicate the OS type, '03' stands for 'Unix', 'ff' means 'Unknown', refer to <a
href="http://www.gzip.org/zlib/rfc-gzip.html">RFC1952</a>. After you change the OS type to 'ff' in your manually compressed file, you would see the sha hash values are just the same.</p> ]]></content:encoded> <wfw:commentRss>http://yongsun.me/2008/12/whats-the-chash-in-ips-manifest/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
