aboutsummaryrefslogtreecommitdiff
path: root/kernel/kernel/vfs.hpp
AgeCommit message (Collapse)AuthorFilesLines
36 hourskernel/vfs: implement read_directory fixups.Felix Morgner1-0/+14
POSIX requires that the data returned by the readdir() function shows the inode number of the root of a mounted filesystem for its mount point. Additionally, the inode number of the '..' reference in the mounted filesystem must show the inode number of the mount point. We perform this fixup when computing the entries during read_directory on the fly. The implementation of the upward fixup will need to be revised once the kernel supports bind mounts.
38 hourskernel/vfs: implement root swivel and mount moveFelix Morgner1-4/+0
Previously, the device filesystem (devfs) was simply grafted on each root filesystem during boot. This caused the existence of an unreachable, dead devfs mount after the VFS instance had been initialized. This changeset implements the ability to relocate an active mount from one mount point to another. That way, no second devfs mount needs to be created. Instead, the existing devfs mount is relocated to a mount point in the persistent root filesystem that get mounted during initialization. Secondly, this changeset also alters the VFS initialization flow, so that only one root mount exists after initialization finishes.
42 hourskernel/vfs: replace owning_mount with driver_stateFelix Morgner1-2/+3
3 dayskapi/fs: implement read_directoryFelix Morgner1-2/+0
This change also replaces the kernel internal directory_listing_cursor and directory_listing_entry with the kapi types directory_cursor and directory_entry.
4 dayskernel: split vfs and filesystem driversFelix Morgner1-0/+139