Skip to contentSkip to conversation

kvm-xfstests: explicitly declare format of vd[b-g]

PATCH Applied Kirill A. Shutemov 2 participants 2 messages Aug 12, 2016 – Aug 15, 2016 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-xfstests: explicitly declare format of vd[b-g]

Newer qemu complains if it cannot detect format of drive file, before assuming it 'raw'.

Let's specify file format explicitly for 'raw' drives.

---
 kvm-xfstests/kvm-xfstests | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
kvm-xfstests/kvm-xfstests +6 -6
index d608317a3ad3..c7ac2b40cfb6 100755
@@ -81,12 +81,12 @@ chmod 400 "$VDH"
 $NO_ACTION $IONICE $QEMU -boot order=c $NET \
 	-machine type=pc,accel=kvm:tcg \
 	-drive file=$ROOT_FS,if=virtio$SNAPSHOT \
-	-drive file=$VDB,cache=none,if=virtio \
-	-drive file=$VDC,cache=none,if=virtio \
-	-drive file=$VDD,cache=none,if=virtio \
-	-drive file=$VDE,cache=none,if=virtio \
-	-drive file=$VDF,cache=none,if=virtio \
-	-drive file=$VDG,cache=none,if=virtio \
+	-drive file=$VDB,cache=none,if=virtio,format=raw \
+	-drive file=$VDC,cache=none,if=virtio,format=raw \
+	-drive file=$VDD,cache=none,if=virtio,format=raw \
+	-drive file=$VDE,cache=none,if=virtio,format=raw \
+	-drive file=$VDF,cache=none,if=virtio,format=raw \
+	-drive file=$VDG,cache=none,if=virtio,format=raw \
 	-drive file=$VDH,cache=unsafe,readonly,if=virtio \
 	-nographic -smp $NR_CPU -m $MEM \
 	$VIRTIO_RNG \
Signature · 1 line
2.8.1
#1 lore raw
Quoted 6 lines · Kirill A. Shutemov

Newer qemu complains if it cannot detect format of drive file, before assuming it 'raw'.

Let's specify file format explicitly for 'raw' drives.

Thanks, applied.

- Ted