From 5df2c9a343f0e3830426b28586c11de94b64af62 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Wed, 14 Oct 2020 12:20:17 +0200 Subject: [PATCH] test/vhost: add -f for mkfs.btrfs command During tests with new qcow2 image there is error: ERROR: use the -f option to force overwrite of /dev/sdb1 when creating filesystem using mkfs.btrfs, adding -f resolve this issue. Signed-off-by: Maciej Wawryk Change-Id: If6548d3d5781e2b46f794422144e2a635e700559 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4660 Reviewed-by: Karol Latecki Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- test/vhost/integrity/integrity_vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vhost/integrity/integrity_vm.sh b/test/vhost/integrity/integrity_vm.sh index 5e83fef955..ed5cc2121c 100755 --- a/test/vhost/integrity/integrity_vm.sh +++ b/test/vhost/integrity/integrity_vm.sh @@ -36,7 +36,7 @@ for fs in $fs; do $parted_cmd mkpart primary 2048s 100% mkfs_cmd="mkfs.$fs" - if [[ $fs == "ntfs" ]]; then + if [[ $fs == "ntfs" ]] || [[ $fs == "btrfs" ]]; then mkfs_cmd+=" -f" fi mkfs_cmd+=" /dev/${dev}1"