|
发表于 2010-12-10 19:20:03
|
显示全部楼层
Post by kevinlei;2122086
writeback实际上就是没有日志。mount -o journal=writeback就是了。不需要格式化硬盘。
参数不对吧,man mount 里是这样写的
- data={journal|ordered|writeback}
- Specifies the journalling mode for file data. Metadata is
- always journaled. To use modes other than ordered on the root
- filesystem, pass the mode to the kernel as boot parameter, e.g.
- rootflags=data=journal.
- journal
- All data is committed into the journal prior to being
- written into the main filesystem.
- ordered
- This is the default mode. All data is forced directly
- out to the main file system prior to its metadata being
- committed to the journal.
- writeback
- Data ordering is not preserved - data may be written into
- the main filesystem after its metadata has been committed
- to the journal. This is rumoured to be the highest-
- throughput option. It guarantees internal filesystem
- integrity, however it can allow old data to appear in
- files after a crash and journal recovery.
复制代码 |
|