parent
1c2dabc6d7
commit
cb2ebd0bf7
|
@ -5,6 +5,7 @@
|
||||||
<events>
|
<events>
|
||||||
<timeout meaning="failed" sec="60" />
|
<timeout meaning="failed" sec="60" />
|
||||||
<log meaning="succeeded">
|
<log meaning="succeeded">
|
||||||
|
Tests finished successfully!*
|
||||||
Tests finished successfully!*
|
Tests finished successfully!*
|
||||||
Tests finished successfully!
|
Tests finished successfully!
|
||||||
</log>
|
</log>
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
<report partitions="yes"/>
|
<report partitions="yes"/>
|
||||||
<policy label_prefix="test-part1" partition="6"/>
|
<policy label_prefix="test-part1" partition="6"/>
|
||||||
<policy label_prefix="test-part2" partition="1"/>
|
<policy label_prefix="test-part2" partition="1"/>
|
||||||
|
<policy label_prefix="test-part3" partition="9"/>
|
||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
<start name="report_rom">
|
<start name="report_rom">
|
||||||
|
@ -75,5 +77,12 @@
|
||||||
<any-service> <child name="part_block" /> <parent/> <any-child/> </any-service>
|
<any-service> <child name="part_block" /> <parent/> <any-child/> </any-service>
|
||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
<start name="test-part3">
|
||||||
|
<binary name="test-block-client"/>
|
||||||
|
<resource name="RAM" quantum="5M" />
|
||||||
|
<route>
|
||||||
|
<any-service> <child name="part_block" /> <parent/> <any-child/> </any-service>
|
||||||
|
</route>
|
||||||
|
</start>
|
||||||
</config>
|
</config>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
|
|
@ -84,6 +84,7 @@ struct Mbr_partition_table : public Block::Partition_table
|
||||||
{
|
{
|
||||||
Partition_record *r = record;
|
Partition_record *r = record;
|
||||||
unsigned lba = r->_lba;
|
unsigned lba = r->_lba;
|
||||||
|
unsigned last_lba = 0;
|
||||||
|
|
||||||
/* first logical partition number */
|
/* first logical partition number */
|
||||||
int nr = 5;
|
int nr = 5;
|
||||||
|
@ -106,7 +107,9 @@ struct Mbr_partition_table : public Block::Partition_table
|
||||||
* (relative form this EBR)
|
* (relative form this EBR)
|
||||||
*/
|
*/
|
||||||
r = &(ebr->_records[1]);
|
r = &(ebr->_records[1]);
|
||||||
lba += ebr->_records[1]._lba;
|
lba += ebr->_records[1]._lba - last_lba;
|
||||||
|
|
||||||
|
last_lba = ebr->_records[1]._lba;
|
||||||
|
|
||||||
} while (r->valid());
|
} while (r->valid());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user