export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
+. lib/inittest
+
mntdir="${PREFIX}mnt with space"
mntusedir="${PREFIX}mntuse"
test $(get lv_field "$1" lv_device_open --binary) = "1"
}
-. lib/inittest
-
#
# Main
#
cat <<- EOF >testcmd.sh
#!/bin/sh
-echo "Data $DMEVENTD_THIN_POOL_DATA"
-echo "Metadata $DMEVENTD_THIN_POOL_METADATA"
+echo "Data: \$DMEVENTD_THIN_POOL_DATA"
+echo "Metadata: \$DMEVENTD_THIN_POOL_METADATA"
-lvextend --use-policies $1 || {
- umount --lazy "$mntdir" || true
- umount --lazy "$mntusedir" || true
+$TESTDIR/lib/lvextend --use-policies \$1 || {
+ umount "$mntdir" || true
+ umount "$mntusedir" || true
}
EOF
chmod +x testcmd.sh
+# Show prepared script
+cat testcmd.sh
aux prepare_dmeventd