mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 04:22:07 +00:00 
			
		
		
		
	 1682f0b760
			
		
	
	
		1682f0b760
		
	
	
	
	
		
			
			SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			839 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			839 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/NonnullOwnPtr.h>
 | |
| #include <AK/RefPtr.h>
 | |
| #include <AK/Result.h>
 | |
| #include <AK/Vector.h>
 | |
| #include <Kernel/Storage/Partition/DiskPartition.h>
 | |
| #include <Kernel/Storage/Partition/MBRPartitionTable.h>
 | |
| 
 | |
| namespace Kernel {
 | |
| 
 | |
| struct EBRPartitionHeader;
 | |
| class EBRPartitionTable : public MBRPartitionTable {
 | |
| public:
 | |
|     ~EBRPartitionTable();
 | |
| 
 | |
|     static Result<NonnullOwnPtr<EBRPartitionTable>, PartitionTable::Error> try_to_initialize(const StorageDevice&);
 | |
|     explicit EBRPartitionTable(const StorageDevice&);
 | |
|     virtual bool is_valid() const override { return m_valid; };
 | |
| 
 | |
| private:
 | |
|     void search_extended_partition(const StorageDevice&, MBRPartitionTable&, u64, size_t limit);
 | |
| 
 | |
|     bool m_valid { false };
 | |
| };
 | |
| }
 |