From nobody Tue Feb 10 01:34:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+63953+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63953+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1597128207; cv=none; d=zohomail.com; s=zohoarc; b=XC6T6AZhOwZ0aCzVDAIcXRT469AY9p63ci0H4HAs0RSidPmlrbueYZCIiB81DW+AJTJCsk95nesFMtrW+dKK4ak90G6ZeOnrPdHDQPx/NAtkhD6Px/kUlApf8Rvp/tzNgJ8Btj3veOqRTitzaCVe25ylnYHFyd0Vyp2SDJq+7ks= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597128207; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=hexUtIXOjBMQTKh5E1TGMGVG19XBVrWz40ILI0efQ3k=; b=krxQDS8LH565FNmUMHffhOJVySImzF7RNSn28Mb5c+nm1+8n8dvO0KXBtWU4IPAokoYnqjks9NtBP4B2Do7bClUiQviDjBxWAHiOorMg+I5F7zov+rSlXYSFnFAmqK6AY5NzhMz/j14OaKlobKmb6e/ggWxv3ZSlBjYa3ujMnRA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63953+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1597128207445899.9786584106662; Mon, 10 Aug 2020 23:43:27 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id elzpYY1788612xKuW5ae7RdJ; Mon, 10 Aug 2020 23:43:26 -0700 X-Received: from mga06.intel.com (mga06.intel.com []) by mx.groups.io with SMTP id smtpd.web10.9771.1597128204307372847 for ; Mon, 10 Aug 2020 23:43:25 -0700 IronPort-SDR: aalOIDTLSCJSsBP0flWXXx7yceqQ6Y8wtFih1WXyxcjHUnXsGZ9vkdr0cx4lqanZtK/kRMI2JV JEcMVMcAzfXw== X-IronPort-AV: E=McAfee;i="6000,8403,9709"; a="215195326" X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="215195326" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2020 23:43:13 -0700 IronPort-SDR: UNu8V7XaeAeo0HgDxeubMxnsIAqOjAU9WJRkNeRjvGMnSOU2yh5/yiV4G3qgvmqD34WE7PxDQ7 AeVw7fMiA6mA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="334477045" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.153.108]) by orsmga007.jf.intel.com with ESMTP; 10 Aug 2020 23:43:11 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni , Gary Lin , Andrew Fish Subject: [edk2-devel] [PATCH 1/3] MdeModulePkg/PartitionDxe: Put the UDF check ahead of MBR Date: Tue, 11 Aug 2020 14:43:00 +0800 Message-Id: <20200811064302.33188-2-zhichao.gao@intel.com> In-Reply-To: <20200811064302.33188-1-zhichao.gao@intel.com> References: <20200811064302.33188-1-zhichao.gao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,zhichao.gao@intel.com X-Gm-Message-State: oJmcwxdXPi1v6rzMk170Fjvrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1597128206; bh=FqasZIkEGZmVDmWBe8p2/D1lWwpT8HpYX5Lst/tTsK4=; h=Cc:Date:From:Reply-To:Subject:To; b=nzgynkgxSQESSxslUCukRkx68EBrRUVAAfZajJud5Hyh0YtkeAJj2Dqz4IYS1UEjDdF oKlnyMOfyVcUzBUFvEwii1AunRt0meFbUNRCLgcg6Xh++BlONP8JrhhQtRsFkd5+Di4Gs l1NY2nzt6te0A6+xdk121YlfnvxleskfEqU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2823 Refer to UEFI spec 2.8, Section 13.3.2, a block device should be scanned as below order: 1. GPT 2. ISO 9660 (El Torito) (UDF should aslo be here) 3. MBR 4. no partition found Note: UDF is using the same boot method as CD, so put it in the same priority with ISO 9660. This would also solve the issue that ISO image with MBR would be treat as MBR device instead of CD/DVD. That would make the behavior of the image boot different. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Gary Lin Cc: Andrew Fish Signed-off-by: Zhichao Gao --- MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c b/MdeModu= lePkg/Universal/Disk/PartitionDxe/Partition.c index 6a43c3cafb..473e091320 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c @@ -35,11 +35,19 @@ EFI_DRIVER_BINDING_PROTOCOL gPartitionDriverBinding =3D= { =20 // // Prioritized function list to detect partition table. +// Refer to UEFI Spec 13.3.2 Partition Discovery, the block device +// should be scanned in below order: +// 1. GPT +// 2. ISO 9660 (El Torito) (or UDF) +// 3. MBR +// 4. no partiton found +// Note: UDF is using a same method as booting from CD-ROM, so put it along +// with CD-ROM check. // PARTITION_DETECT_ROUTINE mPartitionDetectRoutineTable[] =3D { PartitionInstallGptChildHandles, - PartitionInstallMbrChildHandles, PartitionInstallUdfChildHandles, + PartitionInstallMbrChildHandles, NULL }; =20 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63953): https://edk2.groups.io/g/devel/message/63953 Mute This Topic: https://groups.io/mt/76121500/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-