pub struct MountPoint {
pub fs: Arc<dyn FileSystem>,
pub root: Arc<Dentry>,
pub flags: MountFlags,
pub device: Option<String>,
pub mount_path: String,
}Expand description
挂载点信息
Fields§
§fs: Arc<dyn FileSystem>挂载的文件系统
root: Arc<Dentry>挂载点的根 dentry
flags: MountFlags挂载标志
device: Option<String>设备路径(如果有)
mount_path: String挂载路径
Implementations§
Source§impl MountPoint
impl MountPoint
Sourcepub fn new(
fs: Arc<dyn FileSystem>,
mount_path: String,
flags: MountFlags,
device: Option<String>,
) -> Arc<Self>
pub fn new( fs: Arc<dyn FileSystem>, mount_path: String, flags: MountFlags, device: Option<String>, ) -> Arc<Self>
创建新的挂载点