当前位置:网站首页>29、 Implementation of xv6 file system (GDB tracks mkfs, buffer cache and log)
29、 Implementation of xv6 file system (GDB tracks mkfs, buffer cache and log)
2022-07-26 23:24:00 【[T]】
One 、 disk
boot block || sb(super block) block || log || inode block || free bit map || data block
boot block: Guide block
Two 、mkfs: Create file system
rsect/wsect(bread/bwrite)
balloc/bzero
ialloc
iappend
rinode/winode
1、 Through one buffer cache Keep a journal of inode
bread/bwrite
|| buffer cache ||
|| block array ||3、 ... and 、 Disk data write
The normal writing :
1、log Write the log , Write all disk operations to the log
(1) Log header
(2) Data disk operation
(3) The end of the log
2、 Disk data write
3、 Release log
Break through and recover :( In the normal writing step , When a system error occurs , Restore data )
边栏推荐
- 基于gRPC编写golang简单C2远控
- HCIA-R&S自用笔记(19)VLAN配置及实验、VLAN间路由
- ESMFold: AlphaFold2之后蛋白质结构预测的新突破
- 比海豹便宜,造型炸裂空间大,20万左右真没对手?长安全新“王炸”这样选才划算
- The most classic Nature paper on Alzheimer's disease is suspected of fraud
- How can enterprises mitigate the security risks of Internet of things and industrial Internet of things
- Signal debugging document developed by car
- Esmfold: a new breakthrough in protein structure prediction after alphafold2
- Day07 MySQL knowledge points re summary and multi table query
- Weilai cup 2022 Niuke summer multi school training camp 2
猜你喜欢

Eureka基本使用

Vector execution engine framework gluten announced the official open source and appeared at spark technology summit
![[untitled]](/img/88/68952146da17a4a504ee7d1bc8858d.png)
[untitled]

Eureka basic use

MySQL random paging to get non duplicate data

sql多表查询的练习

你知道磁环电感的常见磁芯类型有哪些吗?

Disk expansion process and problems encountered in the virtual machine created by VMWare

【flask高级】结合源码分析flask中的线程隔离机制

App information reconnaissance & night God simulator burp packet capture configuration
随机推荐
Hcia-r & s self use notes (18) campus network architecture foundation, switch working principle, VLAN principle
Openstack virtual machine network card is renamed cirename0
Practical project: boost search engine
你知道磁环电感的常见磁芯类型有哪些吗?
KT6368A蓝牙芯片开发注意事项以及问题集锦--长期更新
Reinforcement learning weekly 55: lb-sgd, msp-drl & robust reinforcement learning against
[shaders realize distorted outline effect _shader effect Chapter 2]
Hcia-r & s self use notes (19) VLAN configuration and experiment, routing between VLANs
华裔科学家Ashe教授对涉嫌造假的Nature论文的正面回应
CSRC: agree to the IPO registration of Chuanyin holding science and Technology Innovation Board
ESMFold: AlphaFold2之后蛋白质结构预测的新突破
The nature and proof of the center of gravity of [mathematics] tree
Huawei conspires to acquire Brazilian operators?
Import of MySQL data
Cheaper than seals, with a large space for shape explosion. Is there really no match for 200000 or so? Chang'an's new "King fried" is cost-effective
How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged
HCIA-R&S自用笔记(21)STP技术背景、STP基础和数据包结构、STP选举规则及案例
Will the approval in advance affect the formal approval?
第二部分—C语言提高篇_9. 链表
Recruit | PostgreSQL database R & D engineers every week, with an annual salary of 60+, high salary for famous enterprises, and challenge yourself!