|
@@ -127,9 +127,9 @@ by the used format or see the format descriptions below for details.
|
|
.. option:: -S SIZE
|
|
.. option:: -S SIZE
|
|
|
|
|
|
Indicates the consecutive number of bytes that must contain only zeros
|
|
Indicates the consecutive number of bytes that must contain only zeros
|
|
- for qemu-img to create a sparse image during conversion. This value is rounded
|
|
|
|
- down to the nearest 512 bytes. You may use the common size suffixes like
|
|
|
|
- ``k`` for kilobytes.
|
|
|
|
|
|
+ for ``qemu-img`` to create a sparse image during conversion. This value is
|
|
|
|
+ rounded down to the nearest 512 bytes. You may use the common size suffixes
|
|
|
|
+ like ``k`` for kilobytes.
|
|
|
|
|
|
.. option:: -t CACHE
|
|
.. option:: -t CACHE
|
|
|
|
|
|
@@ -431,7 +431,7 @@ Command description:
|
|
suppressed from the destination image.
|
|
suppressed from the destination image.
|
|
|
|
|
|
*SPARSE_SIZE* indicates the consecutive number of bytes (defaults to 4k)
|
|
*SPARSE_SIZE* indicates the consecutive number of bytes (defaults to 4k)
|
|
- that must contain only zeros for qemu-img to create a sparse image during
|
|
|
|
|
|
+ that must contain only zeros for ``qemu-img`` to create a sparse image during
|
|
conversion. If *SPARSE_SIZE* is 0, the source will not be scanned for
|
|
conversion. If *SPARSE_SIZE* is 0, the source will not be scanned for
|
|
unallocated or zero sectors, and the destination image will always be
|
|
unallocated or zero sectors, and the destination image will always be
|
|
fully allocated.
|
|
fully allocated.
|
|
@@ -447,7 +447,7 @@ Command description:
|
|
If the ``-n`` option is specified, the target volume creation will be
|
|
If the ``-n`` option is specified, the target volume creation will be
|
|
skipped. This is useful for formats such as ``rbd`` if the target
|
|
skipped. This is useful for formats such as ``rbd`` if the target
|
|
volume has already been created with site specific options that cannot
|
|
volume has already been created with site specific options that cannot
|
|
- be supplied through qemu-img.
|
|
|
|
|
|
+ be supplied through ``qemu-img``.
|
|
|
|
|
|
Out of order writes can be enabled with ``-W`` to improve performance.
|
|
Out of order writes can be enabled with ``-W`` to improve performance.
|
|
This is only recommended for preallocated devices like host devices or other
|
|
This is only recommended for preallocated devices like host devices or other
|
|
@@ -472,7 +472,7 @@ Command description:
|
|
If the option *BACKING_FILE* is specified, then the image will record
|
|
If the option *BACKING_FILE* is specified, then the image will record
|
|
only the differences from *BACKING_FILE*. No size needs to be specified in
|
|
only the differences from *BACKING_FILE*. No size needs to be specified in
|
|
this case. *BACKING_FILE* will never be modified unless you use the
|
|
this case. *BACKING_FILE* will never be modified unless you use the
|
|
- ``commit`` monitor command (or qemu-img commit).
|
|
|
|
|
|
+ ``commit`` monitor command (or ``qemu-img commit``).
|
|
|
|
|
|
If a relative path name is given, the backing file is looked up relative to
|
|
If a relative path name is given, the backing file is looked up relative to
|
|
the directory containing *FILENAME*.
|
|
the directory containing *FILENAME*.
|
|
@@ -684,7 +684,7 @@ Command description:
|
|
|
|
|
|
Safe mode
|
|
Safe mode
|
|
This is the default mode and performs a real rebase operation. The
|
|
This is the default mode and performs a real rebase operation. The
|
|
- new backing file may differ from the old one and qemu-img rebase
|
|
|
|
|
|
+ new backing file may differ from the old one and ``qemu-img rebase``
|
|
will take care of keeping the guest-visible content of *FILENAME*
|
|
will take care of keeping the guest-visible content of *FILENAME*
|
|
unchanged.
|
|
unchanged.
|
|
|
|
|
|
@@ -697,7 +697,7 @@ Command description:
|
|
exists.
|
|
exists.
|
|
|
|
|
|
Unsafe mode
|
|
Unsafe mode
|
|
- qemu-img uses the unsafe mode if ``-u`` is specified. In this
|
|
|
|
|
|
+ ``qemu-img`` uses the unsafe mode if ``-u`` is specified. In this
|
|
mode, only the backing file name and format of *FILENAME* is changed
|
|
mode, only the backing file name and format of *FILENAME* is changed
|
|
without any checks on the file contents. The user must take care of
|
|
without any checks on the file contents. The user must take care of
|
|
specifying the correct new backing file, or the guest-visible
|
|
specifying the correct new backing file, or the guest-visible
|
|
@@ -735,7 +735,7 @@ Command description:
|
|
sizes accordingly. Failure to do so will result in data loss!
|
|
sizes accordingly. Failure to do so will result in data loss!
|
|
|
|
|
|
When shrinking images, the ``--shrink`` option must be given. This informs
|
|
When shrinking images, the ``--shrink`` option must be given. This informs
|
|
- qemu-img that the user acknowledges all loss of data beyond the truncated
|
|
|
|
|
|
+ ``qemu-img`` that the user acknowledges all loss of data beyond the truncated
|
|
image's end.
|
|
image's end.
|
|
|
|
|
|
After using this command to grow a disk image, you must use file system and
|
|
After using this command to grow a disk image, you must use file system and
|