mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: test PF_MEMALLOC interfering with accounting file write
Add a regression test for the bug fixed by commit 10a98cb16d80 ("xfs:
clear PF_MEMALLOC before exiting xfsaild thread").
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -4184,6 +4184,18 @@ _require_negative_timestamps() {
|
||||
esac
|
||||
}
|
||||
|
||||
# Require the 'accton' userspace tool and CONFIG_BSD_PROCESS_ACCT=y.
|
||||
_require_bsd_process_accounting()
|
||||
{
|
||||
_require_command "$ACCTON_PROG" accton
|
||||
$ACCTON_PROG on &> $tmp.test_accton
|
||||
cat $tmp.test_accton >> $seqres.full
|
||||
if grep 'Function not implemented' $tmp.test_accton; then
|
||||
_notrun "BSD process accounting support unavailable"
|
||||
fi
|
||||
$ACCTON_PROG off >> $seqres.full
|
||||
}
|
||||
|
||||
init_rc
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user