mirror of
https://github.com/RGBCube/serenity
synced 2025-10-24 05:22:31 +00:00
The implemented cloning mechanism should be sound: - If a PartitionTable is passed a File with ShouldCloseFileDescriptor::Yes, then it will keep it alive until the PartitionTable is destroyed. - If a PartitionTable is passed a File with ShouldCloseFileDescriptor::No, then the caller has to ensure that the file descriptor remains alive. If the caller is EBRPartitionTable, the same consideration holds. If the caller is PartitionEditor::PartitionModel, this is satisfied by keeping an OwnPtr<Core::File> around which is the originally opened file. Therefore, we never leak any fds, and never access a Core::File or fd after destroying it. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| DiskPartitionMetadata.cpp | ||
| DiskPartitionMetadata.h | ||
| EBRPartitionTable.cpp | ||
| EBRPartitionTable.h | ||
| GUIDPartitionTable.cpp | ||
| GUIDPartitionTable.h | ||
| MBRPartitionTable.cpp | ||
| MBRPartitionTable.h | ||
| PartitionableDevice.cpp | ||
| PartitionableDevice.h | ||
| PartitionTable.cpp | ||
| PartitionTable.h | ||