磁盘与文件系统管理全解析
1. Reiser 文件系统检查与调整
1.1 Reiser 文件系统检查
对 Reiser 文件系统进行检查时,会执行一系列操作,如重放日志、检查 S+ 树、比较位图、检查语义树等。以下是检查过程的输出示例:
Replaying journal..
No transactions found
Checking S+tree..ok
Comparing bitmaps..ok
Checking Semantic tree...ok
No corruptions found
There are on the filesystem:
Leaves 1
Internal nodes 0
Directories 1
Other files 0
Data block pointers 0 (zero of them 0)
###########
reiserfsck finished at Wed May 22 11:36:19 2002
###########
1.2 Reiser 文件系统调整大小
Reiser 文件系统可以使用 resize_reiserfs -s
命令调整大小,也可以在挂载时调整。例如,以下命令将指定的文件系统大小更改为 200,000 块:
# mount -o remount,resize=200000 /dev/sdc