mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
part_blk: report block size
This commit is contained in:
parent
40a0fe9349
commit
90360674ed
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user