]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
populate: reformat external ext[34] journal devices when restoring a cached image
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Oct 2022 01:45:39 +0000 (18:45 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 15 Oct 2022 05:04:33 +0000 (13:04 +0800)
commitfe535b38337f378e27d62a840b6c4c38992c1997
tree52061755a728816a22473b66b8585846f833b04b
parent3436c281c43b141af62a43e0ba766cb55087c277
populate: reformat external ext[34] journal devices when restoring a cached image

The fs population code has the ability to save cached metadumps of
filesystems to save time when running fstests.  The cached images should
be unmounted cleanly, so we never save the contents of external journal
devices.

Unfortunately, the cache restore code fails to reset the external
journal when restoring a clean image, so we ignore cached images because
the journal doesn't match the filesystem.  This makes test runtimes
longer than they need to be.

Solve this by reformatting the external journal to match the filesystem.

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