]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: simulate per-AG reservations being critically low
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:46:51 +0000 (12:46 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:46:51 +0000 (12:46 +1100)
commitc7bf13987fdbf317de6cfc801c914f2af46b7669
treedf2f0b91917e45d6369d181b7ba02c8ea7e2fdec
parent378ed4e785ae4ed5a94c923c25bacd340247c1ca
xfs: simulate per-AG reservations being critically low

Source kernel commit: a35eb41519ab8db90e87d375ee9362d6e080ca4c

Create an error injection point that enables us to simulate being
critically low on per-AG block reservations.  This should enable us to
simulate this specific ENOSPC condition so that we can test falling back
to a regular file copy.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_ag_resv.c