]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext4: don't complain about incorrect features when probing
authorEric Sandeen <sandeen@redhat.com>
Thu, 22 Mar 2018 15:59:00 +0000 (11:59 -0400)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit57973ae80312f9f92de46e26c6110b4a8c6f6c0d
tree5cfc298710f82ce4a7b65ec886526c9f20dceab0
parent580ee00f2ebb023350a79b3962ff859b46974568
ext4: don't complain about incorrect features when probing

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 0d9366d67bcf066b028e57d09c9a86ce879bcc28 ]

If mount is auto-probing for filesystem type, it will try various
filesystems in order, with the MS_SILENT flag set.  We get
that flag as the silent arg to ext4_fill_super.

If we're probing (silent==1) then don't complain about feature
incompatibilities that are found if it looks like it's actually
a different valid extN type - failed probes should be silent
in this case.

If the on-disk features are unknown even to ext4, then complain.

Reported-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Tested-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ext4/super.c