vpc: Add support for Fixed Disk type
commit24da78dbb54b61fa299919c89709270fad5e682d
authorCharles Arnold <carnold@suse.com>
Mon, 6 Feb 2012 16:22:30 +0000 (6 09:22 -0700)
committerKevin Wolf <kwolf@redhat.com>
Thu, 9 Feb 2012 15:17:51 +0000 (9 16:17 +0100)
tree702f18edbbb3acfc92915d7e0233686f9dca15bd
parentf9dadc9855ae1554a98c53a10a3a962859992865
vpc: Add support for Fixed Disk type

The Virtual Hard Disk Image Format Specification allows for three
types of hard disk formats, Fixed, Dynamic, and Differencing.  Qemu
currently only supports Dynamic disks.  This patch adds support for
the Fixed Disk format.

Usage:
    Example 1: qemu-img create -f vpc -o type=fixed <filename> [size]
    Example 2: qemu-img convert -O vpc -o type=fixed <input filename> <output filename>

While it is also allowed to specify '-o type=dynamic', the default disk type
remains Dynamic and is what is used when the type is left unspecified.

Signed-off-by: Charles Arnold <carnold@suse.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c