diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-06-06 08:00:43 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-06-06 08:00:43 +0200 |
commit | 556b8883cfac3d3203557e161ea8005f8b5479b2 (patch) | |
tree | d928587238b976cd90ef90494769eab3af6f95c4 /fs/xfs/xfs_log.c | |
parent | xfs: block allocation work needs to be kswapd aware (diff) | |
download | linux-556b8883cfac3d3203557e161ea8005f8b5479b2.tar.xz linux-556b8883cfac3d3203557e161ea8005f8b5479b2.zip |
xfs: xfs_readsb needs to check for magic numbers
Commit daba542 ("xfs: skip verification on initial "guess"
superblock read") dropped the use of a verifier for the initial
superblock read so we can probe the sector size of the filesystem
stored in the superblock. It, however, now fails to validate that
what was read initially is actually an XFS superblock and hence will
fail the sector size check and return ENOSYS.
This causes probe-based mounts to fail because it expects XFS to
return EINVAL when it doesn't recognise the superblock format.
cc: <stable@vger.kernel.org>
Reported-by: Plamen Petrov <plamen.sisi@gmail.com>
Tested-by: Plamen Petrov <plamen.sisi@gmail.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log.c')
0 files changed, 0 insertions, 0 deletions