1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tests: add data sync

This commit is contained in:
Zdenek Kabelac 2023-04-21 14:51:47 +02:00
parent 80ebec099d
commit 8bcf46a0ac

View File

@ -70,6 +70,8 @@ mkdir "$MOUNT_DIR"
# This mkfs should fill 2MB pool over 95% # This mkfs should fill 2MB pool over 95%
# no autoresize is configured # no autoresize is configured
mkfs.ext4 "$DM_DEV_DIR/mapper/$THIN" mkfs.ext4 "$DM_DEV_DIR/mapper/$THIN"
# ensure all data from mkfs are written to disk
sync
test "$(percent_)" -gt 95 test "$(percent_)" -gt 95
mount "$DM_DEV_DIR/mapper/$THIN" "$MOUNT_DIR" mount "$DM_DEV_DIR/mapper/$THIN" "$MOUNT_DIR"