summaryrefslogtreecommitdiff
path: root/fs/xfs/uuid.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2015-08-28 07:50:03 +0300
committerDave Chinner <david@fromorbit.com>2015-08-28 07:50:03 +0300
commitdfdd4ac66c2f921ecec730a2b24b0b13e10346b2 (patch)
treed47750791dc9dc801f795153bd149756eaa5a044 /fs/xfs/uuid.h
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-dfdd4ac66c2f921ecec730a2b24b0b13e10346b2.tar.xz
libxfs: bad magic number should set da block buffer error
If xfs_da3_node_read_verify() doesn't recognize the magic number of a buffer it's just read, set the buffer error to -EFSCORRUPTED so that the error can be sent up to userspace. Without this patch we'll notice the bad magic eventually while trying to traverse or change the block, but we really ought to fail early in the verifier. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/uuid.h')
0 files changed, 0 insertions, 0 deletions