mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 07:05:06 +00:00
Kernel+LibC: Add support for mount flags
At the moment, the actual flags are ignored, but we correctly propagate them all the way from the original mount() syscall to each custody that resides on the mounted FS.
This commit is contained in:
parent
1e6ab0ed22
commit
4566c2d811
10 changed files with 54 additions and 34 deletions
|
@ -78,10 +78,10 @@ enum ProcFileType {
|
|||
FI_PID_stack,
|
||||
FI_PID_regs,
|
||||
FI_PID_fds,
|
||||
FI_PID_exe, // symlink
|
||||
FI_PID_cwd, // symlink
|
||||
FI_PID_exe, // symlink
|
||||
FI_PID_cwd, // symlink
|
||||
FI_PID_root, // symlink
|
||||
FI_PID_fd, // directory
|
||||
FI_PID_fd, // directory
|
||||
__FI_PID_End,
|
||||
|
||||
FI_MaxStaticFileIndex,
|
||||
|
@ -651,6 +651,7 @@ Optional<KBuffer> procfs$df(InodeIdentifier)
|
|||
fs_object.add("mount_point", mount.absolute_path());
|
||||
fs_object.add("block_size", fs.block_size());
|
||||
fs_object.add("readonly", fs.is_readonly());
|
||||
fs_object.add("mount_flags", mount.flags());
|
||||
|
||||
if (fs.is_disk_backed())
|
||||
fs_object.add("device", static_cast<const DiskBackedFS&>(fs).device().absolute_path());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue