From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Pne9V-0000XZ-1R for mharc-grub-devel@gnu.org; Thu, 10 Feb 2011 16:34:13 -0500 Received: from [140.186.70.92] (port=37677 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pne9S-0000Sk-Ej for grub-devel@gnu.org; Thu, 10 Feb 2011 16:34:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pne9R-0008Uk-7U for grub-devel@gnu.org; Thu, 10 Feb 2011 16:34:10 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:64387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pne9R-0008Uf-2p for grub-devel@gnu.org; Thu, 10 Feb 2011 16:34:09 -0500 Received: by eyh6 with SMTP id 6so1027769eyh.0 for ; Thu, 10 Feb 2011 13:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=M6l3zip1lqWo9wLqMrgrxdOLhXk5yjgInO7yyFFPeYM=; b=FBTCc/8d3ChJ+bwCpDsCeyeMj+dzV6sg+4tcvY042A6S6M/njAFjVUC6bp1oJ4J+q4 bS2r38GiywUe3RnwSFKuvLzJEGsl6oZUFBk7RAJ02DDqc7JhAYJdqPaZ3i4Y+jwuVlrW cPUVoZauVdxdovr+z+Y3otMZOSdaXSYvCqKlY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=WzaTpYFeDoFIDxlEUfoW8f3JhPZAyn7F6lalXUeImRelhPvsJ4d/XfTQbJw1OefqxP tdNvUaR8AGy53NrOn/Hnr6RlqCkELs1fHaOzllJ1BAQLciKyaI2LYBCiXC7D4Shn2Ecy a/eLc7SZVoE3TD+1czkr0Syq3po9NcgW1Sl2Y= Received: by 10.213.27.209 with SMTP id j17mr4340560ebc.56.1297373648044; Thu, 10 Feb 2011 13:34:08 -0800 (PST) Received: from debian.x201.phnet (vpn-global-dhcp3-047.ethz.ch [129.132.210.47]) by mx.google.com with ESMTPS id t50sm60939eeh.18.2011.02.10.13.34.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Feb 2011 13:34:07 -0800 (PST) Message-ID: <4D5459CC.8000703@gmail.com> Date: Fri, 11 Feb 2011 00:34:04 +0300 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: grub-devel@gnu.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigD809653A583DB246E9CC2270" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 Subject: Re: Why prot_size subtract GRUB_DISK_SECTOR_SIZE in the file grub-1.98/loader/i386/linux.c ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 21:34:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD809653A583DB246E9CC2270 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/10/2011 03:52 PM, Baisheng Wang wrote: > > Let me clarify again. > > In grub-1.98/loader/i386/linux.c, for the code lines=EF=BC=9A > > "grub_file_seek (file, real_size + GRUB_DISK_SECTOR_SIZE);" > > and > > "prot_size =3D grub_file_size (file) - real_size - GRUB_DISK_SECTOR_SIZ= E;" > > I want to know why there is another sector, I mean GRUB_DISK_SECTOR_SIZ= E ? > Trivial, Watson. first sector contains the part which is launched only when dd'ing to floppy, not with a propoer bootloader. Actually recent kernels just contain a stub instruction to use a bootloader > Thanks, > Baisheng > > > 2011/2/10 Baisheng Wang @gmail.com > > > Dear all: > > In the file grub-1.98/loader/i386/linux.c, for the variable > prot_size, why subtract GRUB_DISK_SECTOR_SIZE ? > > Thanks & Regards, > Baisheng > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigD809653A583DB246E9CC2270 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk1UWcwACgkQNak7dOguQgn1fgD9HTSbpkWryJGDpysdgSDxTszu 2KTVZcQC0f6wAef1B/wA/i2OVmgjFuifVtQ89txDXa74ZXFc9IuJ7hkDbYTRIRJL =xd/i -----END PGP SIGNATURE----- --------------enigD809653A583DB246E9CC2270--