ext4: return EROFS if device is r/o and journal replay is needed
authorTheodore Ts'o <tytso@mit.edu>
Sun, 5 Feb 2017 06:26:48 +0000 (01:26 -0500)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 06:02:36 +0000 (08:02 +0200)
commit48a5889bfdf956a7426df6c07f6eda8602e6a918
tree6b2d5072d179d1903958977de8074523140b12c5
parent399562b67718b4679e0f228131811b1c1725cf10
ext4: return EROFS if device is r/o and journal replay is needed

commit 4753d8a24d4588657bc0a4cd66d4e282dff15c8c upstream.

If the file system requires journal recovery, and the device is
read-ony, return EROFS to the mount system call.  This allows xfstests
generic/050 to pass.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/ext4/super.c