|
|
43fe83 |
From 44d8ec7532a065d3c0ea81d5e357456d03bff910 Mon Sep 17 00:00:00 2001
|
|
|
43fe83 |
Message-Id: <44d8ec7532a065d3c0ea81d5e357456d03bff910.1377873642.git.jdenemar@redhat.com>
|
|
|
43fe83 |
From: John Ferlan <jferlan@redhat.com>
|
|
|
43fe83 |
Date: Thu, 22 Aug 2013 16:56:29 -0400
|
|
|
43fe83 |
Subject: [PATCH] docs: Reformat <disk> attribute description in formatdomain
|
|
|
43fe83 |
|
|
|
43fe83 |
https://bugzilla.redhat.com/show_bug.cgi?id=1000169
|
|
|
43fe83 |
|
|
|
43fe83 |
Reformat the description to more cleanly delineate the attributes
|
|
|
43fe83 |
for a <disk> element.
|
|
|
43fe83 |
|
|
|
43fe83 |
(cherry picked from commit fc82f0addec21e1fc8b184a9b303c8e7a0dca37f)
|
|
|
43fe83 |
---
|
|
|
43fe83 |
docs/formatdomain.html.in | 121 +++++++++++++++++++++++++++-------------------
|
|
|
43fe83 |
1 file changed, 71 insertions(+), 50 deletions(-)
|
|
|
43fe83 |
|
|
|
43fe83 |
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
|
|
|
43fe83 |
index 203e557..a1803df 100644
|
|
|
43fe83 |
--- a/docs/formatdomain.html.in
|
|
|
43fe83 |
+++ b/docs/formatdomain.html.in
|
|
|
43fe83 |
@@ -1557,56 +1557,77 @@
|
|
|
43fe83 |
|
|
|
43fe83 |
disk
|
|
|
43fe83 |
The disk element is the main container for describing
|
|
|
43fe83 |
- disks. The type attribute is either "file",
|
|
|
43fe83 |
- "block", "dir", "network", or "volume"
|
|
|
43fe83 |
- and refers to the underlying source for the disk. The optional
|
|
|
43fe83 |
- device attribute indicates how the disk is to be exposed
|
|
|
43fe83 |
- to the guest OS. Possible values for this attribute are
|
|
|
43fe83 |
- "floppy", "disk", "cdrom", and "lun", defaulting to
|
|
|
43fe83 |
- "disk". "lun" (since 0.9.10) is only
|
|
|
43fe83 |
- valid when type is "block" and the target element's "bus"
|
|
|
43fe83 |
- attribute is "virtio", and behaves identically to "disk",
|
|
|
43fe83 |
- except that generic SCSI commands from the guest are accepted
|
|
|
43fe83 |
- and passed through to the physical device
|
|
|
43fe83 |
- - also note that device='lun' will only be recognized for
|
|
|
43fe83 |
- actual raw devices, never for individual partitions or LVM
|
|
|
43fe83 |
- partitions (in those cases, the kernel will reject the generic
|
|
|
43fe83 |
- SCSI commands, making it identical to device='disk').
|
|
|
43fe83 |
- The optional rawio attribute
|
|
|
43fe83 |
- (since 0.9.10) indicates whether
|
|
|
43fe83 |
- the disk is needs rawio capability; valid settings are "yes"
|
|
|
43fe83 |
- or "no" (default is "no"). If any one disk in a domain has
|
|
|
43fe83 |
- rawio='yes', rawio capability will be enabled for all disks in
|
|
|
43fe83 |
- the domain (because, in the case of QEMU, this capability can
|
|
|
43fe83 |
- only be set on a per-process basis). This attribute is only
|
|
|
43fe83 |
- valid when device is "lun". NB, rawio intends to
|
|
|
43fe83 |
- confine the capability per-device, however, current QEMU
|
|
|
43fe83 |
- implementation gives the domain process broader capability
|
|
|
43fe83 |
- than that (per-process basis, affects all the domain disks).
|
|
|
43fe83 |
- To confine the capability as much as possible for QEMU driver
|
|
|
43fe83 |
- as this stage, sgio is recommended, it's more
|
|
|
43fe83 |
- secure than rawio .
|
|
|
43fe83 |
- The optional sgio (since 1.0.2)
|
|
|
43fe83 |
- attribute indicates whether the kernel will filter unprivileged
|
|
|
43fe83 |
- SG_IO commands for the disk, valid settings are "filtered" or
|
|
|
43fe83 |
- "unfiltered". Defaults to "filtered". Similar to rawio ,
|
|
|
43fe83 |
- sgio is only valid for device 'lun'.
|
|
|
43fe83 |
- The optional snapshot attribute indicates the default
|
|
|
43fe83 |
- behavior of the disk during disk snapshots: "internal"
|
|
|
43fe83 |
- requires a file format such as qcow2 that can store both the
|
|
|
43fe83 |
- snapshot and the data changes since the snapshot;
|
|
|
43fe83 |
- "external" will separate the snapshot from the live data; and
|
|
|
43fe83 |
- "no" means the disk will not participate in snapshots.
|
|
|
43fe83 |
- Read-only disks default to "no", while the default for other
|
|
|
43fe83 |
- disks depends on the hypervisor's capabilities. Some
|
|
|
43fe83 |
- hypervisors allow a per-snapshot choice as well,
|
|
|
43fe83 |
- during domain snapshot
|
|
|
43fe83 |
- creation. Not all snapshot modes are supported;
|
|
|
43fe83 |
- for example, snapshot='yes' with a transient disk
|
|
|
43fe83 |
- generally does not make sense. Since 0.0.3;
|
|
|
43fe83 |
- "device" attribute since 0.1.4;
|
|
|
43fe83 |
- "network" attribute since 0.8.7; "snapshot" since
|
|
|
43fe83 |
- 0.9.5
|
|
|
43fe83 |
+ disks (since 0.0.3).
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ type attribute
|
|
|
43fe83 |
+ since 0.0.3
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Valid values are "file", "block",
|
|
|
43fe83 |
+ "dir" (since 0.7.5),
|
|
|
43fe83 |
+ "network" (since 0.8.7), or
|
|
|
43fe83 |
+ "volume" (since 1.0.5)
|
|
|
43fe83 |
+ and refer to the underlying source for the disk.
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ device attribute
|
|
|
43fe83 |
+ since 0.1.4
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Indicates how the disk is to be exposed to the guest OS. Possible
|
|
|
43fe83 |
+ values for this attribute are "floppy", "disk", "cdrom", and "lun",
|
|
|
43fe83 |
+ defaulting to "disk".
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Using "lun" (since 0.9.10) is only
|
|
|
43fe83 |
+ valid when type is "block" and the target element's "bus"
|
|
|
43fe83 |
+ attribute is "virtio", and behaves identically to "disk",
|
|
|
43fe83 |
+ except that generic SCSI commands from the guest are accepted
|
|
|
43fe83 |
+ and passed through to the physical device. Also note that
|
|
|
43fe83 |
+ device='lun' will only be recognized for actual raw devices,
|
|
|
43fe83 |
+ but never for individual partitions or LVM partitions (in those
|
|
|
43fe83 |
+ cases, the kernel will reject the generic SCSI commands, making
|
|
|
43fe83 |
+ it identical to device='disk').
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ rawio attribute
|
|
|
43fe83 |
+ since 0.9.10
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Indicates whether the disk is needs rawio capability; valid
|
|
|
43fe83 |
+ settings are "yes" or "no" (default is "no"). If any one disk
|
|
|
43fe83 |
+ in a domain has rawio='yes', rawio capability will be enabled
|
|
|
43fe83 |
+ for all disks in the domain (because, in the case of QEMU, this
|
|
|
43fe83 |
+ capability can only be set on a per-process basis). This attribute
|
|
|
43fe83 |
+ is only valid when device is "lun". NB, rawio intends
|
|
|
43fe83 |
+ to confine the capability per-device, however, current QEMU
|
|
|
43fe83 |
+ implementation gives the domain process broader capability
|
|
|
43fe83 |
+ than that (per-process basis, affects all the domain disks).
|
|
|
43fe83 |
+ To confine the capability as much as possible for QEMU driver
|
|
|
43fe83 |
+ as this stage, sgio is recommended, it's more
|
|
|
43fe83 |
+ secure than rawio .
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ sgio attribute
|
|
|
43fe83 |
+ since 1.0.2
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Indicates whether the kernel will filter unprivileged
|
|
|
43fe83 |
+ SG_IO commands for the disk, valid settings are "filtered" or
|
|
|
43fe83 |
+ "unfiltered". Defaults to "filtered". Similar to rawio ,
|
|
|
43fe83 |
+ sgio is only valid for device 'lun'.
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ snapshot attribute
|
|
|
43fe83 |
+ since 0.9.5
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+ Indicates the default behavior of the disk during disk snapshots:
|
|
|
43fe83 |
+ "internal" requires a file format such as qcow2 that can store
|
|
|
43fe83 |
+ both the snapshot and the data changes since the snapshot;
|
|
|
43fe83 |
+ "external" will separate the snapshot from the live data; and
|
|
|
43fe83 |
+ "no" means the disk will not participate in snapshots. Read-only
|
|
|
43fe83 |
+ disks default to "no", while the default for other disks depends
|
|
|
43fe83 |
+ on the hypervisor's capabilities. Some hypervisors allow a
|
|
|
43fe83 |
+ per-snapshot choice as well, during
|
|
|
43fe83 |
+ domain snapshot creation.
|
|
|
43fe83 |
+ Not all snapshot modes are supported; for example,
|
|
|
43fe83 |
+ snapshot='yes' with a transient disk generally
|
|
|
43fe83 |
+ does not make sense.
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+
|
|
|
43fe83 |
+
|
|
|
43fe83 |
source
|
|
|
43fe83 |
Representation of the disk source depends on the
|
|
|
43fe83 |
disk type attribute value as follows:
|
|
|
43fe83 |
--
|
|
|
43fe83 |
1.8.3.2
|
|
|
43fe83 |
|