1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 20:00:59 +00:00
serenity/Userland/Applications/PartitionEditor
Ben Wiederhake 3d6b838df3 LibPartition: Migrate from DeprecatedFile to File
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.
2023-06-05 14:50:09 +02:00
..
CMakeLists.txt Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
main.cpp LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
PartitionEditorWindow.gml PartitionEditor: Add the beginnings of a partition editor :^) 2022-07-21 20:13:44 +01:00
PartitionModel.cpp LibPartition: Migrate from DeprecatedFile to File 2023-06-05 14:50:09 +02:00
PartitionModel.h LibPartition: Migrate from DeprecatedFile to File 2023-06-05 14:50:09 +02:00