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:
parent
e2fa90bf38
commit
2d48317d3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user