From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NLhsP-0001sK-66 for mharc-grub-devel@gnu.org; Fri, 18 Dec 2009 13:48:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLhsM-0001q2-MS for grub-devel@gnu.org; Fri, 18 Dec 2009 13:48:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLhsH-0001lH-No for grub-devel@gnu.org; Fri, 18 Dec 2009 13:48:30 -0500 Received: from [199.232.76.173] (port=45665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLhsH-0001l2-JQ for grub-devel@gnu.org; Fri, 18 Dec 2009 13:48:25 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:7778) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLhsG-0001YH-P1 for grub-devel@gnu.org; Fri, 18 Dec 2009 13:48:25 -0500 Received: by ey-out-1920.google.com with SMTP id 4so871847eyg.34 for ; Fri, 18 Dec 2009 10:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=wk/f985VYoqIic6BnXXVzo7Fe3YuQeXZjGYVqDYbZMg=; b=FogIVAw5Kh2+Y8Y8/DTab2H7+QgDuxlziq189M0McJ7QcEoT/S5HC9NsyhgvSm4gBf Gq//cV0scuBJXDOjG/sZOfI7JQ3lSPl23LCqktFPfB7rCIeKCdh/VMp1G3B1vr7tibko wzcYn3z/DQEjHxJOYjJOJ5TKLHMtJ4dKoSKR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=IaSWs9DdxjxG1xEPJhbrxrYII0pyVhMFWeSWCfuRc5oHO/0g6/fizRDZMT96WWzTFd RD/fwYMu0gZ18HzLMFTnL2OyI81Uuhntqmxx1pYJfO62CBwDIyv860lywOrRuGBD1W1T vG2GWu6b1MKaBMH8Ka8VfeneU+WPrKlVMjRP4= Received: by 10.213.0.147 with SMTP id 19mr1257821ebb.86.1261162103056; Fri, 18 Dec 2009 10:48:23 -0800 (PST) Received: from debian.bg45.phnet (gprs08.swisscom-mobile.ch [193.247.250.8]) by mx.google.com with ESMTPS id 16sm2103726ewy.14.2009.12.18.10.48.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Dec 2009 10:48:22 -0800 (PST) Message-ID: <4B2BCE69.8060701@gmail.com> Date: Fri, 18 Dec 2009 19:48:09 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: David Miller References: <4B2BAB09.1070208@gmail.com> <20091218.103313.189691866.davem@davemloft.net> <20091218.103502.112588727.davem@davemloft.net> In-Reply-To: <20091218.103502.112588727.davem@davemloft.net> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigFC1474FB1D5408C6D99E581B" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: grub-devel@gnu.org Subject: Re: [PATCH] Don't open same disk twice on OpenFirmware. 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: Fri, 18 Dec 2009 18:48:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFC1474FB1D5408C6D99E581B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable David Miller wrote: > From: David Miller > Date: Fri, 18 Dec 2009 10:33:13 -0800 (PST) > > =20 >> From: Vladimir '=CF=86-coder/phcoder' Serbinenko >> Date: Fri, 18 Dec 2009 17:17:13 +0100 >> >> =20 >>> Hello, all. According to David Miller sparc's openboot doesn't suppor= t >>> opening same disk twice. So I implemented handle reusage logic. Teste= d >>> on imac g3 >>> =20 >> At a minimum you have to seek to the beginning of the device >> as that is one of the many side effects of openning the >> device. >> =20 > > In fact this proves that your idea can't ever work. > Each openned instance will expect the file offset > pointer to be at different locations. > > You can't share open instances, therefore. > > We really just have to make sure GRUB never violates > this restriction. > =20 Actually we don't open files, only disks and we explicitely seek to desired position. It was so even before my patch. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigFC1474FB1D5408C6D99E581B 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 iF4EAREKAAYFAksrzm8ACgkQNak7dOguQgnYxQEAsoXoUQCVPt/TWv+/IbHio83f m+eLvmP3O2EiOW+O1/0A/iCqLDS4dG+hDMb6vyodtUn2JPdhtwJn27hhr/TtrA0H =2Mqa -----END PGP SIGNATURE----- --------------enigFC1474FB1D5408C6D99E581B--