rootfs文档

This commit is contained in:
fslongjin 2022-09-16 12:59:13 +08:00
parent 44d1648e37
commit ed594f1054
3 changed files with 19 additions and 0 deletions

View File

@ -61,5 +61,16 @@ html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
myst_enable_extensions = [
"amsmath",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]

View File

@ -9,3 +9,4 @@ DragonOS的文件系统模块由VFS虚拟文件系统及具体的文件系
vfs/index
fat32/index
rootfs/index

View File

@ -0,0 +1,7 @@
# rootFS 根文件系统
  rootFS是DragonOS开启后挂载的第一个文件系统,它是一个基于内存的伪文件系统。rootfs的功能主要是在具体的磁盘文件系统被挂载之前为其他的伪文件系统提供挂载点使得系统能被正确的初始化。
  rootfs的初始化将与VFS一同初始化。rootfs将为系统的各项文件系统的挂载创建dentry使得其他的文件系统如`devfs`等,能在磁盘文件系统被挂载之前被正确的初始化。
  当磁盘根文件系统被挂载后,将调用`rootfs_umount()`函数。该函数将会把原本挂载在rootfs上的各种伪文件系统迁移到磁盘根文件系统上。当迁移完成后将会释放rootfs所占用的资源。