]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: When media_change happens at Partition.Start(), the lower driver (ScsiD...
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Mar 2012 09:34:14 +0000 (09:34 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Mar 2012 09:34:14 +0000 (09:34 +0000)
Signed-off-by: erictian
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13082 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c

index f47cfe07e1a7a6e175597bbfa6bf1aa14036cc2f..324964a81cc194de7c05ff35cd55bde934f74574 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   SCSI disk driver that layers on every SCSI IO protocol in the system.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, 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
@@ -521,6 +521,8 @@ ScsiDiskReadBlocks (
             &ScsiDiskDevice->BlkIo,\r
             &ScsiDiskDevice->BlkIo\r
             );\r
+      Status = EFI_MEDIA_CHANGED;\r
+      goto Done;\r
     }\r
   }\r
   //\r
@@ -637,6 +639,8 @@ ScsiDiskWriteBlocks (
             &ScsiDiskDevice->BlkIo,\r
             &ScsiDiskDevice->BlkIo\r
             );\r
+      Status = EFI_MEDIA_CHANGED;\r
+      goto Done;\r
     }\r
   }\r
   //\r