]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/map: Recognize CDROM change
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 25 Jul 2017 07:30:23 +0000 (15:30 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 26 Jul 2017 09:19:28 +0000 (17:19 +0800)
commit1ccfe74ef4bf261e07f99f615a880e34fd4185ef
treea273fa5610a2498e643acb3f4c153aa3c6575b34
parent958a81813bd9790b04199fce077918d08257e1a4
ShellPkg/map: Recognize CDROM change

The patch adds logic to probe the media change for physical
block devices. So that when media change happens, the BlockIo
is re-installed again.

It fixes the issue when CDROM is removed UEFI Shell still shows
the BlockIo in the output of "map -r".

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c