xfs: ensure bad primary sb crc fails mount
authorEric Sandeen <sandeen@redhat.com>
Tue, 18 Feb 2014 10:18:20 +0000 (21:18 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Feb 2014 10:18:20 +0000 (21:18 +1100)
commit0ab3beb126116cd8a3093d8391092d8c2ce59500
treed5accbd8e3ed8ac3c1089b3390c4d758973effa7
parent3698f0930c01f513c1465dee2a72c31a7b36b02a
xfs: ensure bad primary sb crc fails mount

the commit:
10e6e65 xfs: be more forgiving of a v4 secondary sb w/ junk in v5 fields
broke primary sb CRC validation, not erroring out the mount
if the crc was bad.

This tests that it's fixed, and properly fails the mount on
a bad crc.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/005 [new file with mode: 0755]
tests/xfs/005.out [new file with mode: 0644]
tests/xfs/group