]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg ScsiDiskDxe: Modify FlushBlocksEx() to follow UEFI spec
authorHao Wu <hao.a.wu@intel.com>
Tue, 22 Dec 2015 13:54:16 +0000 (13:54 +0000)
committerhwu1225 <hwu1225@Edk2>
Tue, 22 Dec 2015 13:54:16 +0000 (13:54 +0000)
commit7013e0885c471fc9457a6f43a8d5125bfa4eec3d
tree3e62e0d197faa7965ef652b500f29cc289dd39ea
parenta5d28900d21cd3de0235490c602d86daf9208b24
MdeModulePkg ScsiDiskDxe: Modify FlushBlocksEx() to follow UEFI spec

The function ScsiDiskFlushBlocksEx() in ScsiDiskDxe/ScsiDisk.c originally
always returns EFI_SUCCESS, which is not aligned with the UEFI spec.

This commit adds addtional checks to see if the media in the device is
changed or removed. Check for whether the device can be written is also
added. Corresponding status will be returned according to the check
result.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19444 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h