From: "Laszlo Ersek" <lersek@redhat.com>
To: "Gao, Zhichao" <zhichao.gao@intel.com>,
"Ni, Ray" <ray.ni@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Wu, Hao A" <hao.a.wu@intel.com>,
"Wang, Jian J" <jian.j.wang@intel.com>,
"Gao, Liming" <liming.gao@intel.com>
Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/PartitionDxe: Seperate the Udf handler
Date: Thu, 2 Jul 2020 11:42:11 +0200 [thread overview]
Message-ID: <bef23d0d-5e40-644f-1fe5-c2d174a30b31@redhat.com> (raw)
In-Reply-To: <DM6PR11MB442530800CC616CE1F5DC5D2F66E0@DM6PR11MB4425.namprd11.prod.outlook.com>
On 06/29/20 03:47, Gao, Zhichao wrote:
> Hi Laszlo,
>
> Sorry, I didn't put the detail info about the issue. Let me descript here.
>
> The issue is not only for Red Hat. I found it with ubuntu 18.02 amd64 and Fedora-20-x86_64 ISO image as well. I didn't view all the linux iso images.
OK. Thanks.
>
> Here is the issue:
> Using USB CD ROM with the linux ISO DVD. Run the platform and enter UEFI shell -> plug the USB CD ROM with the ISO DVD -> run "map -r". The CD's file system didn't show.
That's right.
And, I've always thought that's by design.
With all the ISO images I've checked in the UEFI shell before, my
experience has been consistent: in the UEFI shell, the ElTorito boot
image contents are *visible*, and the file system that the *OS* would
show is *not* visible.
I've always treated these two content-sets as separate file systems.
When we "mount" the ISO under UEFI, we get the ElTorito boot image. When
we mount the disk under an OS, we get the "real" file system.
What's wrong with that?
UEFI needs to be able to boot off of a UEFI-bootable CD-ROM. That
requires support for the ElTorito boot image. That support exists.
>
> It works fine with the normal boot (such as F2, F7 and auto boot) because it would run the *connect all* operation.
I think I disagree; ConnectAll is not the reason.
Automatic boot works OK because the ElTorito image is processed
correctly even *without* a ConnectAll, and the ElTorito image is all
that's needed for successfully booting.
I think you may be misled the fact that the ElTorito image and the
OS-visible filesystem on the disk are *similar*. They have similar
contents, but they are not identical. For UEFI booting, the OS-visible
filesystem is completely ignored (and that's how it should be).
> That would run the partition driver serval times. First time the partition driver would install MBR partition info protocol with the device handle and skip the UDF check. The second time, it would fail the MBR check with *already started* and run UDF check next. That means for such ISO the UEFI would install two partition protocol, both MBR and UDF.
I still don't understand how UDF enters the picture. If I loop-mount the
"Fedora-20-x86_64-DVD.iso" image on my laptop, the kernel logs the
following:
> ISO 9660 Extensions: Microsoft Joliet Level 3
> ISO 9660 Extensions: RRIP_1991A
Also, the "mount" and "df" commands report the filesystem on the ISO
image as "iso9660". It's not UDF.
(I do have UDF media too; when I mount it, the kernel logs
> UDF-fs: INFO Mounting volume '...', timestamp ... (...)
and "mount" and "df" report "udf" as file system.)
So I would say that a UDF filesystem should *never* be exposed for
"Fedora-20-x86_64-DVD.iso" specifically, under UEFI.
... down-thread, Ray says,
> It sounds like a bug in partition driver that the second UDF check
> succeeds.
And I think I agree.
Thanks
Laszlo
>
> But for shell environment, the USB hot plug handle would connect the USB device only once and missing the UDF check.
>
> I don't know why linux need the MBR info. Maybe for legacy compatible thinking (my opinion, may be wrong).
>
> If the GPT, MBR and UDF are conflict, then the original logic is fine. But in fact, GPT and MBR are conflict and GPT/MBR and UDF are not conflict.
next prev parent reply other threads:[~2020-07-02 9:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 5:56 [PATCH] MdeModulePkg/PartitionDxe: Seperate the Udf handler Gao, Zhichao
2020-06-24 8:32 ` Ni, Ray
2020-06-24 11:57 ` [edk2-devel] " Laszlo Ersek
2020-06-25 0:21 ` Ni, Ray
2020-06-25 9:02 ` Laszlo Ersek
2020-06-29 1:47 ` Gao, Zhichao
2020-06-29 2:42 ` Ni, Ray
2020-06-29 5:23 ` Gao, Zhichao
2020-07-02 9:42 ` Laszlo Ersek [this message]
2020-07-06 2:55 ` Gao, Zhichao
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-list 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=bef23d0d-5e40-644f-1fe5-c2d174a30b31@redhat.com \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox