1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

tests: umount when above 95

Add code to check if resulting data or metadata remained over 95%
and in such case invoke umount.
This commit is contained in:
Zdenek Kabelac 2017-01-21 22:53:57 +01:00
parent e2fa90bf38
commit 2d48317d3a

View File

@ -54,6 +54,12 @@ echo "Metadata: \$DMEVENTD_THIN_POOL_METADATA"
$TESTDIR/lib/lvextend --use-policies \$1 || {
umount "$mntdir" || true
umount "$mntusedir" || true
return 1
}
test \$($TESTDIR/lib/lvs -o selected -S "data_percent>95||metadata_percent>95" --noheadings \$1) -eq 0 || {
umount "$mntdir" || true
umount "$mntusedir" || true
return 1
}
EOF
chmod +x testcmd.sh