1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 01:45:08 +00:00
serenity/Kernel/Storage/Partition
Liav A f5de4f24b2 Kernel/Devices: Defer creation of SysFS component after the constructor
Instead of doing so in the constructor, let's do immediately after the
constructor, so we can safely pass a reference of a Device, so the
SysFSDeviceComponent constructor can use that object to identify whether
it's a block device or a character device.
This allows to us to not hold a device in SysFSDeviceComponent with a
RefPtr.
Also, we also call the before_removing method in both SlavePTY::unref
and File::unref, so because Device has that method being overrided, it
can ensure the device is removed always cleanly.
2021-09-11 11:41:14 +02:00
..
DiskPartition.cpp Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
DiskPartition.h Kernel/Devices: Defer creation of SysFS component after the constructor 2021-09-11 11:41:14 +02:00
DiskPartitionMetadata.cpp Everywhere: Make use of container version of all_of 2021-08-03 10:46:43 +02:00
DiskPartitionMetadata.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EBRPartitionTable.cpp Kernel: Fix incorrect argument when constructing DiskPartitionMetadata 2021-05-16 17:49:42 +02:00
EBRPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
GUIDPartitionTable.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
GUIDPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MBRPartitionTable.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
MBRPartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PartitionTable.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PartitionTable.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00