diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2018-04-17 08:06:53 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-04-18 02:10:17 +0200 |
commit | b42db0860e13067fcc7cbfba3966c9e652668bbc (patch) | |
tree | df2f30810453248be95f53fdfc1234372c41b359 /fs/f2fs/gc.h | |
parent | Linux 4.17-rc1 (diff) | |
download | linux-b42db0860e13067fcc7cbfba3966c9e652668bbc.tar.xz linux-b42db0860e13067fcc7cbfba3966c9e652668bbc.zip |
xfs: enhance dinode verifier
Add several more validations to xfs_dinode_verify:
- For LOCAL data fork formats, di_nextents must be 0.
- For LOCAL attr fork formats, di_anextents must be 0.
- For inodes with no attr fork offset,
- format must be XFS_DINODE_FMT_EXTENTS if set at all
- di_anextents must be 0.
Thanks to dchinner for pointing out a couple related checks I had
forgotten to add.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199377
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/f2fs/gc.h')
0 files changed, 0 insertions, 0 deletions