From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] Don't open same disk twice on OpenFirmware.
Date: Fri, 18 Dec 2009 19:48:09 +0100 [thread overview]
Message-ID: <4B2BCE69.8060701@gmail.com> (raw)
In-Reply-To: <20091218.103502.112588727.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]
David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Fri, 18 Dec 2009 10:33:13 -0800 (PST)
>
>
>> From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
>> Date: Fri, 18 Dec 2009 17:17:13 +0100
>>
>>
>>> Hello, all. According to David Miller sparc's openboot doesn't support
>>> opening same disk twice. So I implemented handle reusage logic. Tested
>>> on imac g3
>>>
>> 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.
>>
>
> 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.
>
Actually we don't open files, only disks and we explicitely seek to
desired position. It was so even before my patch.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
prev parent reply other threads:[~2009-12-18 18:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 16:17 [PATCH] Don't open same disk twice on OpenFirmware Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-18 18:33 ` David Miller
2009-12-18 18:35 ` David Miller
2009-12-18 18:48 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2BCE69.8060701@gmail.com \
--to=phcoder@gmail.com \
--cc=davem@davemloft.net \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.