1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-23 01:22:31 +00:00
serenity/Kernel/Devices/Storage
Liav A 23a7ccf607 Kernel+LibCore+LibC: Split the mount syscall into multiple syscalls
This is a preparation before we can create a usable mechanism to use
filesystem-specific mount flags.
To keep some compatibility with userland code, LibC and LibCore mount
functions are kept being usable, but now instead of doing an "atomic"
syscall, they do multiple syscalls to perform the complete procedure of
mounting a filesystem.

The FileBackedFileSystem IntrusiveList in the VFS code is now changed to
be protected by a Mutex, because when we mount a new filesystem, we need
to check if a filesystem is already created for a given source_fd so we
do a scan for that OpenFileDescription in that list. If we fail to find
an already-created filesystem we create a new one and register it in the
list if we successfully mounted it. We use a Mutex because we might need
to initiate disk access during the filesystem creation, which will take
other mutexes in other parts of the kernel, therefore making it not
possible to take a spinlock while doing this.
2023-07-02 01:04:51 +02:00
..
ATA Kernel: Move all boot-related code to the new Boot subdirectory 2023-06-04 21:32:34 +02:00
NVMe Kernel: Move all boot-related code to the new Boot subdirectory 2023-06-04 21:32:34 +02:00
SD Kernel: Increase SD Data Timeout 2023-06-30 23:45:47 +02:00
DiskPartition.cpp Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00
DiskPartition.h Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00
StorageController.cpp Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00
StorageController.h Kernel: Move {Virtual,Physical}Address classes to the Memory directory 2023-06-04 21:32:34 +02:00
StorageDevice.cpp Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00
StorageDevice.h Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00
StorageManagement.cpp Kernel+LibCore+LibC: Split the mount syscall into multiple syscalls 2023-07-02 01:04:51 +02:00
StorageManagement.h Kernel: Move the Storage directory to be a new directory under Devices 2023-06-02 11:04:37 +02:00