qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] qemu-img cannot format block device from qcow2 to raw


From: Han Han
Subject: [Qemu-discuss] qemu-img cannot format block device from qcow2 to raw
Date: Mon, 8 May 2017 10:15:14 +0800

As subject, I tried to change block device from qcow2 to raw format,
but it didn't make effect:
# lsblk /dev/sdc
NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdc    8:32   1 14.6G  0 disk

# qemu-img info /dev/sdc
image: /dev/sdc
file format: qcow2
virtual size: 15G (15614803968 bytes)
disk size: 0
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

# qemu-img create /dev/sdc -f raw 15614803968
Formatting '/dev/sdc', fmt=raw size=15614803968

# qemu-img info /dev/sdc
image: /dev/sdc
file format: qcow2
virtual size: 15G (15614803968 bytes)
disk size: 0
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

As above, the format of block device was not changed.
Is it a bug or designed as this?
Thanks


-- 
Han Han
Associate Quality Engineer
Redhat

Email: address@hidden
Phone: +861065339333



reply via email to

[Prev in Thread] Current Thread [Next in Thread]