From nobody Tue Feb 10 04:07:54 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+63952+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+63952+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1597128206; cv=none; d=zohomail.com; s=zohoarc; b=GkpEeef4rBDhPRciU9QMh9QLpw1cdHa5OjzIpAcSerk3gT1KrWhttJ3cRJlE58UT5eJhg9zWIVReQYBb2fhIiELzTg00d3xj44aSQuaJRDPx4sazP6nEi0gThOb2QfAbCyQKEBQvxsvGQNj4mP4zJkNUq75Ztp0EoToMBlDafEA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597128206; 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=KtB1ONDY9E1RYr6DLR/jWbDllxB2Xtbm3tmwLEy7GVw=; b=MkC2wsXi93iAy36YqtPQkhyqE3O1VtXUEgFrmU+NpQw9J+yF5iXAA5Pt6pwN90ofVEqOn6fHuNXVAQ4um+psmYLNE3RXr3RG9wb3fFo5h5dOVxt4As9S1SdAJicb1Ff1CvSxngUU0/84T7XD5qXd69Ykhj+Bpp56AxLgASbUqhk= 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+63952+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 1597128205944402.34630039005845; Mon, 10 Aug 2020 23:43:25 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id oBGIYY1788612xNGkZ3IYoQf; Mon, 10 Aug 2020 23:43:25 -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:24 -0700 IronPort-SDR: t0BxWuNWldayrU7JDU3Pfj7n5DJP2CJnMdVyLM2M36z1465osx6c8Kv7xZ0HVqIHyCK2ukhMbR wSC8PdV9wY2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9709"; a="215195333" X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="215195333" 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:15 -0700 IronPort-SDR: honQ9XEL5omsKu6uDsOV04ssWW9dfUcyiMTb0M164YyAbB/HxoqZhf/bR0OD/l2iBbsEZzmH1Z KVvLJjEWqdug== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="334477058" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.153.108]) by orsmga007.jf.intel.com with ESMTP; 10 Aug 2020 23:43:13 -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 2/3] MdeModulePkg/PartitionDxe: Remove the check for special MBR Date: Tue, 11 Aug 2020 14:43:01 +0800 Message-Id: <20200811064302.33188-3-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: 2IJO7uPXLsStsJun8oCqrTlmx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1597128205; bh=zO+E5NaGYlbDjN1zb37VRLsVZPgezfGEMp0zJHfA92U=; h=Cc:Date:From:Reply-To:Subject:To; b=vs0x7lzDNHMGYov4lux1f347C2zU0mApbKfB/Gr3EUtvKUkZKvVIMsUjNpdfIcnrz8n a8fF50TDWCcDbyGinHzpX5P4NJkB29o8WZE/rSwfGNXXTkgNxKUbyYBi5VO3rcBHWs8qN w+7svowys3NeP7S5IczND7JTLGyKmGflY2Y= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2823 Follow the spec definition, the ISO 9660 (and UDF) would be checked before the MBR. So it is not required to skip such MBR talbe that contian the entire block device. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Gary Lin Cc: Andrew Fish Signed-off-by: Zhichao Gao --- .../Universal/Disk/PartitionDxe/Mbr.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c b/MdeModulePkg/= Universal/Disk/PartitionDxe/Mbr.c index 3830af1ea7..822bf03e92 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c @@ -55,25 +55,6 @@ PartitionValidMbr ( StartingLBA =3D UNPACK_UINT32 (Mbr->Partition[Index1].StartingLBA); SizeInLBA =3D UNPACK_UINT32 (Mbr->Partition[Index1].SizeInLBA); =20 - // - // If the MBR with partition entry covering the ENTIRE disk, i.e. star= t at LBA0 - // with whole disk size, we treat it as an invalid MBR partition. - // - if ((StartingLBA =3D=3D 0) && - (SizeInLBA =3D=3D (LastLba + 1))) { - // - // Refer to the http://manpages.ubuntu.com/manpages/bionic/man8/mkud= ffs.8.html - // "WHOLE DISK VS PARTITION" - // Some linux ISOs may put the MBR table in the first 512 bytes for = compatibility reasons with Windows. - // Linux kernel ignores MBR table if contains partition which star= ts at sector 0. - // Skip it because we don't have the partition check for UDF(El Tori= to compatible). - // It would continue to do the whole disk check in the UDF routine. - // - DEBUG ((DEBUG_INFO, "PartitionValidMbr: MBR table has partition entr= y covering the ENTIRE disk. Don't treat it as a valid MBR.\n")); - - return FALSE; - } - if (Mbr->Partition[Index1].OSIndicator =3D=3D 0x00 || SizeInLBA =3D=3D= 0) { continue; } --=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 (#63952): https://edk2.groups.io/g/devel/message/63952 Mute This Topic: https://groups.io/mt/76121499/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-