diff options
author | kavsrf <kavsrf@gmail.com> | 2017-09-03 09:23:17 +0300 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-12-09 11:26:48 +0100 |
commit | 42d7c987c89c294560fef23f440c9a2bd1df65c6 (patch) | |
tree | 60464dc1274d563e7e5e613a0cf00957fe88e8d5 /DcsInfo | |
parent | fceb3623c755f58053fb40f656ca42a1c2c0e896 (diff) | |
download | VeraCrypt-DCS-42d7c987c89c294560fef23f440c9a2bd1df65c6.tar.gz VeraCrypt-DCS-42d7c987c89c294560fef23f440c9a2bd1df65c6.zip |
size of sector = 512 (check and info)
Diffstat (limited to 'DcsInfo')
-rw-r--r-- | DcsInfo/DcsInfo.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/DcsInfo/DcsInfo.c b/DcsInfo/DcsInfo.c index 048640a..70f235e 100644 --- a/DcsInfo/DcsInfo.c +++ b/DcsInfo/DcsInfo.c @@ -212,7 +212,22 @@ InfoTcg() { VOID
InfoBlockDevices() {
- XmlTag(fInfo, "BlockDevices", TRUE, NULL, " count=\"%d\"", gBIOCount, NULL);
+ UINTN i;
+ XmlTag(fInfo, "BlockDevices", FALSE, NULL, " count=\"%d\"", gBIOCount, NULL);
+ FileAsciiPrint(fInfo, "\n");
+ gXmlTabs++;
+ for (i = 0; i < gBIOCount; ++i) {
+ EFI_BLOCK_IO_PROTOCOL *bio;
+ bio = EfiGetBlockIO(gBIOHandles[i]);
+ if (bio != NULL && bio->Media != NULL) {
+ XmlTag(fInfo, "BlockDevice", TRUE, NULL,
+ " index=\"%d\" logical=\"%d\" block_size=\"%d\" revision=\"%llx\" read_only=\"%d\" last_block=\"%lld\"", i,
+ bio->Media->LogicalPartition, bio->Media->BlockSize, bio->Revision,
+ bio->Media->ReadOnly,
+ bio->Media->LastBlock, NULL);
+ }
+ }
+ XmlEndTag(fInfo, "BlockDevices");
}
VOID
|