mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 14:23:39 +00:00
为vfs挂载文件系统增加挂载点路径参数
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
#include <common/fcntl.h>
|
||||
#include <common/blk_types.h>
|
||||
|
||||
struct vfs_superblock_t *vfs_root_sb = NULL;
|
||||
extern struct vfs_superblock_t *vfs_root_sb;
|
||||
|
||||
#define VFS_DPT_MBR 0 // MBR分区表
|
||||
#define VFS_DPT_GPT 1 // GPT分区表
|
||||
@ -54,7 +54,7 @@ struct vfs_superblock_t
|
||||
{
|
||||
struct vfs_dir_entry_t *root;
|
||||
struct vfs_super_block_operations_t *sb_ops;
|
||||
struct block_device * blk_device;
|
||||
struct block_device *blk_device;
|
||||
void *private_sb_info;
|
||||
};
|
||||
|
||||
@ -175,11 +175,12 @@ uint64_t vfs_unregister_filesystem(struct vfs_filesystem_type_t *fs);
|
||||
/**
|
||||
* @brief 挂载文件系统
|
||||
*
|
||||
* @param path 要挂载到的路径
|
||||
* @param name 文件系统名
|
||||
* @param blk 块设备结构体
|
||||
* @return struct vfs_superblock_t*
|
||||
* @return struct vfs_superblock_t* 挂载后,文件系统的超级块
|
||||
*/
|
||||
struct vfs_superblock_t *vfs_mount_fs(char *name, struct block_device *blk);
|
||||
struct vfs_superblock_t *vfs_mount_fs(const char *path, char *name, struct block_device *blk);
|
||||
|
||||
/**
|
||||
* @brief 按照路径查找文件
|
||||
|
Reference in New Issue
Block a user