@@ -181,14 +181,17 @@ When mounting an ext4 filesystem, the following option are accepted:
181
181
system after its metadata has been committed to the journal.
182
182
183
183
commit=nrsec (*)
184
- Ext4 can be told to sync all its data and metadata every 'nrsec'
185
- seconds. The default value is 5 seconds. This means that if you lose
186
- your power, you will lose as much as the latest 5 seconds of work (your
187
- filesystem will not be damaged though, thanks to the journaling). This
188
- default value (or any low value) will hurt performance, but it's good
189
- for data-safety. Setting it to 0 will have the same effect as leaving
190
- it at the default (5 seconds). Setting it to very large values will
191
- improve performance.
184
+ This setting limits the maximum age of the running transaction to
185
+ 'nrsec' seconds. The default value is 5 seconds. This means that if
186
+ you lose your power, you will lose as much as the latest 5 seconds of
187
+ metadata changes (your filesystem will not be damaged though, thanks
188
+ to the journaling). This default value (or any low value) will hurt
189
+ performance, but it's good for data-safety. Setting it to 0 will have
190
+ the same effect as leaving it at the default (5 seconds). Setting it
191
+ to very large values will improve performance. Note that due to
192
+ delayed allocation even older data can be lost on power failure since
193
+ writeback of those data begins only after time set in
194
+ /proc/sys/vm/dirty_expire_centisecs.
192
195
193
196
barrier=<0|1(*)>, barrier(*), nobarrier
194
197
This enables/disables the use of write barriers in the jbd code.
0 commit comments