Hi,

So looking a the EFI_BLOCK_IO_MEDIA structure.  I see the following:

SATA Drive:
Removable:0  ReadOnly:0  MediaPresent:1  LogPart:0  BlockSize:512

SCSI Drive:
Removable:0  ReadOnly:0  MediaPresent:1  LogPart:0  BlockSize:512

SATA DVD writer:
Removable:1  ReadOnly:0  MediaPresent:0  LogPart:0  BlockSize:2048

USB stick:
Removable:1  ReadOnly:0  MediaPresent:1  LogPart:0  BlockSize:512

USB hard drive:
Removable:1  ReadOnly:0  MediaPresent:1  LogPart:0  BlockSize:512

I would think the Removable flag should be off for the two USB devices
because the "media" is not removable, the "device" is.  That's
typically how things get reported in other environments.

Considering you *could* have hard drives with 2048 blocks size or
future optical media formats with 4096 block sizes, it seems that
determining the device type (mainly the HD type from the CD type) for
different formats isn't so clear for those who have to prepare them.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to