ext4: improve handling of conflicting mount options
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Sep 2011 22:22:38 +0000 (18:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Sep 2011 22:22:38 +0000 (18:22 -0400)
commit56889787cfa77dfd96f0b3a3e6a4f26c2e4a5134
tree5fb1be2d593fae0bb1a566397c58dc4f7ce010f2
parent2be4751b21ae1cacb002da48cfc5bf6743fee8c1
ext4: improve handling of conflicting mount options

If the user explicitly specifies conflicting mount options for
delalloc or dioread_nolock and data=journal, fail the mount, instead
of printing a warning and continuing (since many user's won't look at
dmesg and notice the warning).

Also, print a single warning that data=journal implies that delayed
allocation is not on by default (since it's not supported), and
furthermore that O_DIRECT is not supported.  Improve the text in
Documentation/filesystems/ext4.txt so this is clear there as well.

Similarly, if the dioread_nolock mount option is specified when the
file system block size != PAGE_SIZE, fail the mount instead of
printing a warning message and ignoring the mount option.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Documentation/filesystems/ext4.txt
fs/ext4/ext4.h
fs/ext4/super.c