SimpleKernel 1.17.0
Loading...
Searching...
No Matches
vfs::MountPoint Struct Reference

挂载点 More...

#include <mount.hpp>

Collaboration diagram for vfs::MountPoint:
Collaboration graph

Public Attributes

const char * mount_path {nullptr}
 挂载路径(如 "/mnt/disk")
 
Dentrymount_dentry {nullptr}
 挂载点在父文件系统中的 dentry
 
FileSystemfilesystem {nullptr}
 挂载的文件系统实例
 
BlockDevicedevice {nullptr}
 关联的块设备(可为 nullptr)
 
Inoderoot_inode {nullptr}
 该文件系统的根 inode
 
Dentryroot_dentry {nullptr}
 该文件系统的根 dentry
 
bool active {false}
 是否处于活动状态
 

Detailed Description

挂载点

将一个文件系统的根 inode 关联到目录树中的某个 dentry 上

Definition at line 15 of file mount.hpp.

Member Data Documentation

◆ active

bool vfs::MountPoint::active {false}

是否处于活动状态

Definition at line 29 of file mount.hpp.

29{false};

◆ device

BlockDevice* vfs::MountPoint::device {nullptr}

关联的块设备(可为 nullptr)

Definition at line 23 of file mount.hpp.

23{nullptr};

◆ filesystem

FileSystem* vfs::MountPoint::filesystem {nullptr}

挂载的文件系统实例

Definition at line 21 of file mount.hpp.

21{nullptr};

◆ mount_dentry

Dentry* vfs::MountPoint::mount_dentry {nullptr}

挂载点在父文件系统中的 dentry

Definition at line 19 of file mount.hpp.

19{nullptr};

◆ mount_path

const char* vfs::MountPoint::mount_path {nullptr}

挂载路径(如 "/mnt/disk")

Definition at line 17 of file mount.hpp.

17{nullptr};

◆ root_dentry

Dentry* vfs::MountPoint::root_dentry {nullptr}

该文件系统的根 dentry

Definition at line 27 of file mount.hpp.

27{nullptr};

◆ root_inode

Inode* vfs::MountPoint::root_inode {nullptr}

该文件系统的根 inode

Definition at line 25 of file mount.hpp.

25{nullptr};

The documentation for this struct was generated from the following file: