1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

SystemServer: Mount DevLoopFS on /dev/loop

Let's use the new DevLoopFS filesystem on /dev/loop to see the loop
devices immediately as they're created or deleted.
This commit is contained in:
Liav A 2024-02-09 16:26:26 +02:00 committed by Andrew Kaster
parent 0d2e4a7e67
commit d14a0a454a

View file

@ -125,6 +125,8 @@ static ErrorOr<void> prepare_bare_minimum_devtmpfs_directory_structure()
TRY(Core::System::mkdir("/dev/gpu"sv, 0755));
TRY(Core::System::mkdir("/dev/pts"sv, 0755));
TRY(Core::System::mount(-1, "/dev/pts"sv, "devpts"sv, 0));
TRY(Core::System::mkdir("/dev/loop"sv, 0755));
TRY(Core::System::mount(-1, "/dev/loop"sv, "devloop"sv, 0));
mode_t old_mask = umask(0);
TRY(Core::System::create_char_device("/dev/devctl"sv, 0660, 2, 10));