]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
dmerror: support external log and realtime devices
authorDarrick J. Wong <djwong@kernel.org>
Tue, 9 Aug 2022 21:01:06 +0000 (14:01 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 20 Aug 2022 14:09:00 +0000 (22:09 +0800)
commitacf0424671ffb3f81514e69b07331c393254abcd
tree2d9762fafd50409da5236913ed11000692ed2bb8
parent92caf7ebe14d1ac9f2eddd41a983e8a3ff89c03b
dmerror: support external log and realtime devices

Upgrade the dmerror code to coordinate making external scratch log and
scratch realtime devices error out along with the scratch device.  Note
that unlike SCRATCH_DEV, we save the old rt/log devices in a separate
variable and overwrite SCRATCH_{RT,LOG}DEV so that all the helper
functions continue to work properly.

This is very similar to what we did for dm-flakey a while back.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/dmerror
tests/generic/441
tests/generic/487