]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Set the BlockIo.Media.IoAlign to 0 because the BlockIo produced by Partition driver...
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Apr 2011 03:07:38 +0000 (03:07 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Apr 2011 03:07:38 +0000 (03:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11493 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c

index 1b0c3b36eb61f3b33be779a89b2cfa771e1d5532..0a5d3d28f0cc7a580574661a7bbf83c625c064dc 100644 (file)
@@ -4,7 +4,7 @@
   of the raw block devices media. Currently "El Torito CD-ROM", Legacy\r
   MBR, and GPT partition schemes are supported.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -648,6 +648,11 @@ PartitionInstallChildHandle (
   Private->BlockIo.Media    = &Private->Media;\r
   CopyMem (Private->BlockIo.Media, ParentBlockIo->Media, sizeof (EFI_BLOCK_IO_MEDIA));\r
   Private->Media.LogicalPartition = TRUE;\r
+\r
+  //\r
+  // Logical BlockIo instance doesn't have IoAlign restriction because it implements block io operation based on DiskIo\r
+  //\r
+  Private->Media.IoAlign   = 0;\r
   Private->Media.LastBlock = DivU64x32 (\r
                                MultU64x32 (\r
                                  End - Start + 1,\r
@@ -656,7 +661,7 @@ PartitionInstallChildHandle (
                                BlockSize\r
                                ) - 1;\r
 \r
-  Private->Media.BlockSize      = (UINT32) BlockSize;\r
+  Private->Media.BlockSize = (UINT32) BlockSize;\r
 \r
   //\r
   // Per UEFI Spec, LowestAlignedLba and LogicalBlocksPerPhysicalBlock must be 0\r