]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Return -EINVAL when a device is not ocfs2.
authorJoel Becker <joel.becker@oracle.com>
Thu, 29 Oct 2009 05:28:24 +0000 (22:28 -0700)
committerJoel Becker <joel.becker@oracle.com>
Thu, 29 Oct 2009 05:28:24 +0000 (22:28 -0700)
commitfeb4f0831b0d3f2c19890306e3d4602593a904aa
tree014ef905e4c4ff708ad7dbceef445a2e0e567757
parent59fcef890fc8359d0c89d47be8eed573f6153bca
ocfs2: Return -EINVAL when a device is not ocfs2.

In case of non-modular kernels the root filesystem is mounted by trying
several filesystems. If ocfs2 was tried before the actual filesystem
type, the mount would fail because ocfs2_sb_probe() returns -EAGAIN
instead of -EINVAL.  ocfs2 will now return -EINVAL properly.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Reported-by: Laszlo Attila Toth <panther@balabit.hu>
fs/ocfs2/super.c