]> git.ipfire.org Git - thirdparty/grub.git/commit
tests: Ensure that loopback devices and zfs devices are cleaned up
authorGlenn Washburn <development@efficientek.com>
Sun, 6 Feb 2022 22:00:12 +0000 (16:00 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 26 Apr 2022 13:40:10 +0000 (15:40 +0200)
commita8cf36d77bdba0a04b68901b53c6a1313fe8c74a
treebcfcf1c8df7d35e4e6939426e6260b08b165272d
parentf035853761476438c712c6c99decf79fea66f956
tests: Ensure that loopback devices and zfs devices are cleaned up

ZFS file systems are not unmounted using umount, but instead by exporting
them. So export the ZFS file system that has the same label as the one that
was created during the test, if such one exists. This is required to delete
the loopback device that uses the ZFS image file. Otherwise the added code
to delete all loopback devices setup during the test run will never be able
to finish because the loopback device can not be deleted while in use.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in