xfs: don't ASSERT on corrupt ftype
authorEric Sandeen <sandeen@sandeen.net>
Tue, 23 Sep 2014 06:05:32 +0000 (16:05 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Sep 2014 06:05:32 +0000 (16:05 +1000)
commitfb040131561a6b34cefb92cdf598218104abeda0
treec5fae1013adc56bb89a1443313e246882d0dfab7
parent8af3dcd3c89aef10375bdd79d5f336b22b57487c
xfs: don't ASSERT on corrupt ftype

xfs_dir3_data_get_ftype() gets the file type off disk, but ASSERTs
if it's invalid:

     ASSERT(type < XFS_DIR3_FT_MAX);

We shouldn't ASSERT on bad values read from disk.  V3 dirs are
CRC-protected, but V2 dirs + ftype are not.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_da_format.c