summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-06 16:00:43 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-06 18:57:28 -0700
commit196c55ab344602fa0768a6a50b86f63b5744d106 (patch)
tree20961efb2f013b325822cb125818856b1e75486c /samples
parent211f36b51bf27dabea5dbd5052b0146712e95164 (diff)
downloadlwn-196c55ab344602fa0768a6a50b86f63b5744d106.tar.gz
lwn-196c55ab344602fa0768a6a50b86f63b5744d106.zip
xfs: xfs_readsb needs to check for magic numbers
commit 556b8883cfac3d3203557e161ea8005f8b5479b2 upstream. 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. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions