part_blk: report block size

This commit is contained in:
Josef Söntgen 2018-05-02 17:23:39 +02:00 committed by Christian Helmuth
parent 40a0fe9349
commit 90360674ed
2 changed files with 3 additions and 0 deletions

View File

@ -277,6 +277,8 @@ class Gpt : public Block::Partition_table
xml.attribute("guid", e->_guid.to_string());
xml.attribute("start", e->_lba_start);
xml.attribute("length", e->_lba_end - e->_lba_start + 1);
xml.attribute("block_size", driver.blk_size());
if (fs_type.valid()) {
xml.attribute("file_system", fs_type);
}

View File

@ -176,6 +176,7 @@ struct Mbr_partition_table : public Block::Partition_table
xml.attribute("type", r->_type);
xml.attribute("start", r->_lba + offset);
xml.attribute("length", r->_sectors);
xml.attribute("block_size", driver.blk_size());
if (fs_type.valid()) {
xml.attribute("file_system", fs_type);