]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:21:21 +0000 (09:21 +0100)
commit350595c52fc1d44516c1f8e4b65efc21518dc2c2
treec1c99231167235e8b5ab7517726ef2612d8d5f7c
parent6b58f6924fc9fc71975cdedc68ebd048901725ee
ext4: return EROFS if device is r/o and journal replay is needed

BugLink: http://bugs.launchpad.net/bugs/1673538
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/ext4/super.c