[libvirt] [PATCH] docs: use unique dev names in <disk> examples

Eric Blake eblake at redhat.com
Thu Aug 7 14:38:11 UTC 2014


Jiri Moskovcak reported on IRC that the documentation on valid
<disk> was confusing because it didn't have unique dev='...'
entries.

* docs/formatdomain.html.in: Use unique names.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 docs/formatdomain.html.in |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 8950959..08f31c4 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -1540,14 +1540,14 @@
       <source protocol="rbd" name="image_name2">
         <host name="hostname" port="7000"/>
       </source>
-      <target dev="hdd" bus="ide"/>
+      <target dev="hdc" bus="ide"/>
       <auth username='myuser'>
         <secret type='ceph' usage='mypassid'/>
       </auth>
     </disk>
     <disk type='block' device='cdrom'>
       <driver name='qemu' type='raw'/>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hdd' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='network' device='cdrom'>
@@ -1555,7 +1555,7 @@
       <source protocol="http" name="url_path">
         <host name="hostname" port="80"/>
       </source>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hde' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='network' device='cdrom'>
@@ -1563,7 +1563,7 @@
       <source protocol="https" name="url_path">
         <host name="hostname" port="443"/>
       </source>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hdf' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='network' device='cdrom'>
@@ -1571,7 +1571,7 @@
       <source protocol="ftp" name="url_path">
         <host name="hostname" port="21"/>
       </source>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hdg' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='network' device='cdrom'>
@@ -1579,7 +1579,7 @@
       <source protocol="ftps" name="url_path">
         <host name="hostname" port="990"/>
       </source>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hdh' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='network' device='cdrom'>
@@ -1587,7 +1587,7 @@
       <source protocol="tftp" name="url_path">
         <host name="hostname" port="69"/>
       </source>
-      <target dev='hdc' bus='ide' tray='open'/>
+      <target dev='hdi' bus='ide' tray='open'/>
       <readonly/>
     </disk>
     <disk type='block' device='lun'>
@@ -1601,12 +1601,12 @@
       <source dev='/dev/sda'/>
       <geometry cyls='16383' heads='16' secs='63' trans='lba'/>
       <blockio logical_block_size='512' physical_block_size='4096'/>
-      <target dev='hda' bus='ide'/>
+      <target dev='sdb' bus='ide'/>
     </disk>
     <disk type='volume' device='disk'>
       <driver name='qemu' type='raw'/>
       <source pool='blk-pool0' volume='blk-pool0-vol0'/>
-      <target dev='hda' bus='ide'/>
+      <target dev='sdc' bus='ide'/>
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
@@ -1626,7 +1626,7 @@
       <auth username='myuser'>
         <secret type='iscsi' usage='libvirtiscsi'/>
       </auth>
-      <target dev='sda' bus='scsi'/>
+      <target dev='vdb' bus='scsi'/>
     </disk>
     <disk type='volume' device='disk'>
       <driver name='qemu' type='raw'/>
@@ -1634,7 +1634,7 @@
       <auth username='myuser'>
         <secret type='iscsi' usage='libvirtiscsi'/>
       </auth>
-      <target dev='vda' bus='virtio'/>
+      <target dev='vdc' bus='virtio'/>
     </disk>
     <disk type='volume' device='disk'>
       <driver name='qemu' type='raw'/>
@@ -1642,7 +1642,7 @@
       <auth username='myuser'>
         <secret type='iscsi' usage='libvirtiscsi'/>
       </auth>
-      <target dev='vda' bus='virtio'/>
+      <target dev='vdd' bus='virtio'/>
     </disk>
     <disk type='file' device='disk'>
       <driver name='qemu' type='qcow2'/>
@@ -1656,7 +1656,7 @@
           <backingStore/>
         </backingStore>
       </backingStore>
-      <target dev='vda' bus='virtio'/>
+      <target dev='vde' bus='virtio'/>
     </disk>
   </devices>
   ...</pre>
-- 
1.7.1




More information about the libvir-list mailing list