mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 00:23:16 +00:00
@ -174,7 +174,7 @@ class Block::Session_component : public Block::Session_rpc_object,
|
||||
Ram_dataspace_capability const rq_ds() const { return _rq_ds; }
|
||||
Partition *partition() { return _partition; }
|
||||
|
||||
void dispatch(Packet_descriptor &request, Packet_descriptor &reply)
|
||||
void dispatch(Packet_descriptor &request, Packet_descriptor &reply) override
|
||||
{
|
||||
request.succeeded(reply.succeeded());
|
||||
|
||||
@ -217,7 +217,7 @@ class Block::Session_component : public Block::Session_rpc_object,
|
||||
*******************************/
|
||||
|
||||
void info(sector_t *blk_count, size_t *blk_size,
|
||||
Operations *ops)
|
||||
Operations *ops) override
|
||||
{
|
||||
Operations driver_ops = _driver.ops();
|
||||
|
||||
@ -233,7 +233,7 @@ class Block::Session_component : public Block::Session_rpc_object,
|
||||
ops->set_operation(Opcode::WRITE);
|
||||
}
|
||||
|
||||
void sync() { _driver.session().sync(); }
|
||||
void sync() override { _driver.session().sync(); }
|
||||
};
|
||||
|
||||
|
||||
|
@ -393,10 +393,10 @@ class Gpt : public Block::Partition_table
|
||||
|
||||
using Partition_table::Partition_table;
|
||||
|
||||
Block::Partition *partition(int num) {
|
||||
Block::Partition *partition(int num) override {
|
||||
return (num <= MAX_PARTITIONS && num > 0) ? _part_list[num-1] : 0; }
|
||||
|
||||
bool parse()
|
||||
bool parse() override
|
||||
{
|
||||
Sector s(driver, Gpt_hdr::HEADER_LBA, 1);
|
||||
_parse_gpt(s.addr<Gpt_hdr *>());
|
||||
|
@ -136,10 +136,10 @@ struct Mbr_partition_table : public Block::Partition_table
|
||||
|
||||
using Partition_table::Partition_table;
|
||||
|
||||
Block::Partition *partition(int num) {
|
||||
Block::Partition *partition(int num) override {
|
||||
return (num < MAX_PARTITIONS) ? _part_list[num] : 0; }
|
||||
|
||||
bool parse()
|
||||
bool parse() override
|
||||
{
|
||||
Sector s(driver, 0, 1);
|
||||
Mbr *mbr = s.addr<Mbr *>();
|
||||
|
Reference in New Issue
Block a user