mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
rootfs文档
This commit is contained in:
parent
44d1648e37
commit
ed594f1054
11
docs/conf.py
11
docs/conf.py
@ -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",
|
||||
]
|
@ -9,3 +9,4 @@ DragonOS的文件系统模块由VFS(虚拟文件系统)及具体的文件系
|
||||
|
||||
vfs/index
|
||||
fat32/index
|
||||
rootfs/index
|
||||
|
7
docs/kernel/filesystem/rootfs/index.md
Normal file
7
docs/kernel/filesystem/rootfs/index.md
Normal file
@ -0,0 +1,7 @@
|
||||
# rootFS 根文件系统
|
||||
|
||||
  rootFS是DragonOS开启后挂载的第一个文件系统,它是一个基于内存的伪文件系统。rootfs的功能主要是在具体的磁盘文件系统被挂载之前,为其他的伪文件系统提供挂载点,使得系统能被正确的初始化。
|
||||
|
||||
  rootfs的初始化将与VFS一同初始化。rootfs将为系统的各项文件系统的挂载创建dentry,使得其他的文件系统如`devfs`等,能在磁盘文件系统被挂载之前被正确的初始化。
|
||||
|
||||
  当磁盘根文件系统被挂载后,将调用`rootfs_umount()`函数。该函数将会把原本挂载在rootfs上的各种伪文件系统迁移到磁盘根文件系统上。当迁移完成后,将会释放rootfs所占用的资源。
|
Loading…
x
Reference in New Issue
Block a user