mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
Kernel+LibPartition: Move EBRPartitionTable into LibPartition
This commit is contained in:
parent
1a6ef03e4a
commit
9053d86b82
6 changed files with 37 additions and 42 deletions
28
Userland/Libraries/LibPartition/EBRPartitionTable.h
Normal file
28
Userland/Libraries/LibPartition/EBRPartitionTable.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2022, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibPartition/MBRPartitionTable.h>
|
||||
|
||||
namespace Partition {
|
||||
|
||||
struct EBRPartitionHeader;
|
||||
class EBRPartitionTable : public MBRPartitionTable {
|
||||
public:
|
||||
~EBRPartitionTable();
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<EBRPartitionTable>> try_to_initialize(Kernel::StorageDevice const&);
|
||||
explicit EBRPartitionTable(Kernel::StorageDevice const&);
|
||||
virtual bool is_valid() const override { return m_valid; };
|
||||
|
||||
private:
|
||||
void search_extended_partition(Kernel::StorageDevice const&, MBRPartitionTable&, u64, size_t limit);
|
||||
|
||||
bool m_valid { false };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue