Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KN0hs-0001he-Iv for mharc-grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KN0hq-0001g0-QT for grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KN0ho-0001fo-F8 for grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:13 -0400 Received: from [199.232.76.173] (port=55303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KN0ho-0001fl-Ar for grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:12 -0400 Received: from mx20.gnu.org ([199.232.41.8]:49126) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KN0ho-0002VO-5J for grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:12 -0400 Received: from ti-out-0910.google.com ([209.85.142.187]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KN0hl-0004lf-K0 for grub-devel@gnu.org; Sun, 27 Jul 2008 03:30:11 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1810032tia.10 for ; Sun, 27 Jul 2008 00:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xL+LhGhe+i1FhnxrCK0iOP4yBTbLlmRniXIuZV0U7EY=; b=oc62ruRsA1PvH2pFWAfJbGlqAqXItsrokgLaLAsrRZI4qHJ7ffJqDn6NybAAvKeCe5 DV6NRFt3zCLzI8REPg0iKS7vhIGIV1quUhPP+b82EN3lZ+c8jan39EMH6bqQD+G+t4JF YGxJvWdGk7xnRmuqI7lTV1M9CriM3PBUYJtUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JMXop4HBCApgqq1wsy2qAKKpcyRgWjDUqFwvdb42aD2fFUreqgbmvqATdJAuYLDUwh 1atVRkXOX124ZxSQHK+XCmMvHgTx6ymeoFo/wffqJ29MHnDElVIu3Ifk1IpyuY0TivCu uOppcjXnlWIFaScsMVr4Kk6zK55a+6o+wB0VE= Received: by 10.110.10.11 with SMTP id 11mr4144183tij.10.1217143806377; Sun, 27 Jul 2008 00:30:06 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Sun, 27 Jul 2008 00:30:06 -0700 (PDT) Message-ID: Date: Sun, 27 Jul 2008 15:30:06 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1217143244.16601.45.camel@ct> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080725205339.GH18149@thorin> <1217134545.15984.13.camel@ct> <1217142302.16601.40.camel@ct> <1217143244.16601.45.camel@ct> X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] Misc patches for grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2008 07:30:15 -0000 On Sun, Jul 27, 2008 at 3:20 PM, Pavel Roskin wrote: >> >> BTW, any comment about the other changes ? >> > >> > Why do we need "crc"? If there are chances that it will be used for >> > security, we should be using SHA-1. >> >> crc is useful in many place. For example, png, jffs2, etc. > > But why make it a command? There are two parts, one is lib/crc.c, which contains only the crc function, the other is command/crc.c, which is a command to calculate the crc of selected file. Although it's not necessary to have a command, but it can 1) serve as an example of how to use the crc function, 2) as a cheap way to verify if a file is read correctly by the fs driver. -- Bean