mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:55:08 +00:00
28 lines
687 B
C++
28 lines
687 B
C++
/*
|
|
* 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 };
|
|
};
|
|
|
|
}
|