码迷,mamicode.com
首页 > 其他好文 > 详细

文件系统一致性

时间:2018-05-11 23:21:03      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:min   auto   director   shu   tables   sig   direct   signed   hat   

File system relies on an internal set of tables to keep track of inodes used and available blocks. When these internal tables are not properly synchronized with data on a disk, inconsistencies result and file systems need to be repaired.

File systems can be inconsistent because of abrupt termination of the operating system in these ways:

  • Power failure

  • Accidental unplugging of the system

  • Turning off the system without proper shutdown procedure

  • A software error in the kernel

File system inconsistencies, while serious, are not common. When a system is booted, a check for file system consistency is automatically performed (with the fsck command). Most of the time, this file system check repairs problems it encounters.

The fsck command places files and directories that are allocated but unreferenced in the lost+found directory. A inode number is assigned as the name of unreferenced file and directory. If the lost+found directory does not exist, the fsck command creates it. If there is not enough space in the lost+found directory, the fsck command increases its size.

文件系统一致性

标签:min   auto   director   shu   tables   sig   direct   signed   hat   

原文地址:https://www.cnblogs.com/kelamoyujuzhen/p/9026130.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!