]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
check: detect and preserve all coredumps made by a test
authorDarrick J. Wong <djwong@kernel.org>
Fri, 14 Oct 2022 18:20:20 +0000 (11:20 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Oct 2022 04:48:38 +0000 (12:48 +0800)
commit81a2acdc6d3aa06b1b5111739c0f9f94593d7779
treee9173f48238a0ddb532ca6d6fa90f235c36d4f77
parentbd19653e345f9d7a30a2a95a2b70314386979038
check: detect and preserve all coredumps made by a test

If someone sets kernel.core_uses_pid (or kernel.core_pattern), any
coredumps generated by fstests might have names that are longer than
just "core".  Since the pid isn't all that useful by itself, let's
record the coredumps by hash when we save them, so that we don't waste
space storing identical crash dumps.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
check
common/rc