]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Introduce error injection to reduce maximum inode fork extent count
authorChandan Babu R <chandanrlinux@gmail.com>
Mon, 5 Apr 2021 22:32:10 +0000 (18:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 5 Apr 2021 22:32:10 +0000 (18:32 -0400)
commitb88613bd2bda94419bbd80fde130db1050585126
tree360ee845e4e1884109ba59491067ff4c9c2ce984
parent24bc2803b2a96026269f75a2d09274ee19e5d4b7
xfs: Introduce error injection to reduce maximum inode fork extent count

Source kernel commit: f9fa87169d2bc1bf55ab42bb6085114378c53b86

This commit adds XFS_ERRTAG_REDUCE_MAX_IEXTENTS error tag which enables
userspace programs to test "Inode fork extent count overflow detection"
by reducing maximum possible inode fork extent count to 10.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/inject.c
libxfs/xfs_errortag.h
libxfs/xfs_inode_fork.c