summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Meier <ruediger.meier@ga-group.nl>2014-03-21 12:31:39 +0100
committerKarel Zak <kzak@redhat.com>2014-04-23 11:55:08 +0200
commit6b356f5d2cf51766c2304a75cfd2680c4fdf0cd1 (patch)
tree814155fe9a0b3891b0f8e35553e8eec892b598c2
parent6108696ac92795fe12cd0b245448ac9511f90fbb (diff)
downloadutil-linux-6b356f5d2cf51766c2304a75cfd2680c4fdf0cd1.tar.gz
mount: update mount.8 about barrier mount options defaults
This patch comes originally from Jan Kara <jack@suse.cz> and updates the default behaviour of the kernel which has been changed some years ago. See kernel docs Documentation/filesystems/ext3.txt Documentation/filesystems/ext4.txt
-rw-r--r--sys-utils/mount.837
1 files changed, 16 insertions, 21 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index 5ac5ea5e0..60c2288d1 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -1523,12 +1523,13 @@ ordered mode.
Abort the journal if an error occurs in a file data buffer in ordered mode.
.TP
.BR barrier=0 " / " barrier=1 "
-This enables/disables barriers. barrier=0 disables it, barrier=1 enables it.
-Write barriers enforce proper on-disk ordering of journal commits, making
-volatile disk write caches safe to use, at some performance penalty. The ext3
-filesystem does not enable write barriers by default. Be sure to enable
-barriers unless your disks are battery-backed one way or another. Otherwise
-you risk filesystem corruption in case of power failure.
+This disables / enables the use of write barriers in the jbd code. barrier=0
+disables, barrier=1 enables (default). This also requires an IO stack which can
+support barriers, and if jbd gets an error on a barrier write, it will disable
+barriers again with a warning. Write barriers enforce proper on-disk ordering
+of journal commits, making volatile disk write caches safe to use, at some
+performance penalty. If your disks are battery-backed in one way or another,
+disabling barriers may safely improve performance.
.TP
.BI commit= nrsec
Sync all data and metadata every
@@ -1576,15 +1577,9 @@ enabled older kernels cannot mount the device.
This will enable 'journal_checksum' internally.
.TP
.BR barrier=0 " / " barrier=1 " / " barrier " / " nobarrier
-This enables/disables the use of write barriers in the jbd code. barrier=0
-disables, barrier=1 enables. This also requires an IO stack which can support
-barriers, and if jbd gets an error on a barrier write, it will disable again
-with a warning. Write barriers enforce proper on-disk ordering of journal
-commits, making volatile disk write caches safe to use, at some performance
-penalty. If your disks are battery-backed in one way or another, disabling
-barriers may safely improve performance. The mount options "barrier" and
-"nobarrier" can also be used to enable or disable barriers, for consistency
-with other ext4 mount options.
+These mount options have the same effect as in ext3. The mount options
+"barrier" and "nobarrier" are added for consistency with other ext4 mount
+options.
The ext4 filesystem enables write barriers by default.
.TP
@@ -2265,13 +2260,13 @@ Enable POSIX Access Control Lists. See the
manual page.
.TP
.BR barrier=none " / " barrier=flush "
-This enables/disables the use of write barriers in the journaling code.
-barrier=none disables it, barrier=flush enables it. Write barriers enforce
+This disables / enables the use of write barriers in the journaling code.
+barrier=none disables, barrier=flush enables (default). This also requires an
+IO stack which can support barriers, and if reiserfs gets an error on a barrier
+write, it will disable barriers again with a warning. Write barriers enforce
proper on-disk ordering of journal commits, making volatile disk write caches
-safe to use, at some performance penalty. The reiserfs filesystem does not
-enable write barriers by default. Be sure to enable barriers unless your disks
-are battery-backed one way or another. Otherwise you risk filesystem
-corruption in case of power failure.
+safe to use, at some performance penalty. If your disks are battery-backed in
+one way or another, disabling barriers may safely improve performance.
.SH "Mount options for romfs"
None.