1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 14:05:06 +00:00
serenity/Kernel/FileSystem/SysFS/Subsystems/DeviceIdentifiers
Liav A 60f7d61ad2 Kernel/SysFS: Fix parent directory hierarchy with symbolic links
We should actually start counting from the parent directory and not from
the symbolic link as it will represent a wrong count of hops from the
actual mountpoint.

The symlinks in /sys/dev/block and /sys/dev/char worked only by luck,
because I have set it to the wrong parent directory which is the
/sys/dev directory, so with the symlink it was 3 hops to /sys, together
with the root directory, therefore, everything seemed to work.

Now that the device symlinks in /sys/dev/block and /sys/dev/char are set
to the right parent directory and we start measure hops from root
directory with the parent directory of a symlink, everything seem to
work correctly now.
2022-07-24 13:38:24 +01:00
..
BlockDevicesDirectory.cpp Kernel/SysFS: Mark SysFSDirectory traverse and lookup methods as final 2022-07-15 12:29:23 +02:00
BlockDevicesDirectory.h Kernel/Devices: Abstract SysFS Device add/remove methods more properly 2022-07-19 11:02:37 +01:00
CharacterDevicesDirectory.cpp Kernel/SysFS: Mark SysFSDirectory traverse and lookup methods as final 2022-07-15 12:29:23 +02:00
CharacterDevicesDirectory.h Kernel/Devices: Abstract SysFS Device add/remove methods more properly 2022-07-19 11:02:37 +01:00
DeviceComponent.cpp Kernel/SysFS: Rename Devices code folder => DeviceIdentifiers 2022-07-15 12:29:23 +02:00
DeviceComponent.h Kernel/SysFS: Mark SysFSDirectory traverse and lookup methods as final 2022-07-15 12:29:23 +02:00
Directory.cpp Kernel/SysFS: Add /sys/devices/storage directory 2022-07-15 12:29:23 +02:00
Directory.h Kernel/SysFS: Add /sys/devices/storage directory 2022-07-15 12:29:23 +02:00
SymbolicLinkDeviceComponent.cpp Kernel/SysFS: Fix parent directory hierarchy with symbolic links 2022-07-24 13:38:24 +01:00
SymbolicLinkDeviceComponent.h Kernel/SysFS: Fix parent directory hierarchy with symbolic links 2022-07-24 13:38:24 +01:00