[edk2-devel] [PATCH V2 2/3] MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM

2020-07-07 Thread Gao, Zhichao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2823 Refer to http://manpages.ubuntu.com/manpages/bionic/man8/mkudffs.8.html. Some Linux ISOs may have the MBR table for compatibility reasons for Windows. The MBR tale would contain the partition entry with start LBA0 and whole media size. There

Re: [edk2-devel] [PATCH V2 2/3] MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM

2020-07-12 Thread Ni, Ray
> +// > +// If the MBR with partition entry contains itself, i.e. start with LBA0, > +// and have the same size with the media, we treat it as a El Torito > partition. > +// > +if ((StartingLBA == 0) && > +(SizeInLBA != 0) && 1. Can this check "SizeInLBA != 0" be remove

Re: [edk2-devel] [PATCH V2 2/3] MdeModulePkg/PartitionDxe: Skip the MBR that add for CD-ROM

2020-07-13 Thread Gao, Zhichao
> -Original Message- > From: Ni, Ray > Sent: Monday, July 13, 2020 2:45 PM > To: Gao, Zhichao ; devel@edk2.groups.io > Cc: Wu, Hao A ; Laszlo Ersek > Subject: RE: [PATCH V2 2/3] MdeModulePkg/PartitionDxe: Skip the MBR that add > for CD-ROM > > > +// > > +// If the MBR with par