diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-21 14:51:47 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-21 14:52:43 +0200 |
commit | 8bcf46a0acfa500b4fb586cba254ca3930389d3d (patch) | |
tree | f307b337576cf5883f62acb90733085f9a03d739 /test | |
parent | 80ebec099dbb20e46655958e1ca7fcfd466b78d8 (diff) | |
download | lvm2-8bcf46a0acfa500b4fb586cba254ca3930389d3d.tar.gz |
tests: add data sync
Diffstat (limited to 'test')
-rw-r--r-- | test/shell/thin-foreign-dmeventd.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/shell/thin-foreign-dmeventd.sh b/test/shell/thin-foreign-dmeventd.sh index 561cea885..76995a3d0 100644 --- a/test/shell/thin-foreign-dmeventd.sh +++ b/test/shell/thin-foreign-dmeventd.sh @@ -70,6 +70,8 @@ mkdir "$MOUNT_DIR" # This mkfs should fill 2MB pool over 95% # no autoresize is configured mkfs.ext4 "$DM_DEV_DIR/mapper/$THIN" +# ensure all data from mkfs are written to disk +sync test "$(percent_)" -gt 95 mount "$DM_DEV_DIR/mapper/$THIN" "$MOUNT_DIR" |