]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: Allow space character in disk vendor/product
authorCole Robinson <crobinso@redhat.com>
Fri, 15 Apr 2016 17:21:27 +0000 (13:21 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 26 Apr 2016 14:29:44 +0000 (10:29 -0400)
The hex range already tried to allow for it, but it wasn't using
the correct XML hex syntax. Fix it, and test it

docs/schemas/domaincommon.rng
tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-vpd.args
tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-vpd.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-disk-scsi-disk-vpd.xml

index 3605afeb72a4ed8ffc97f00944ae1e8a19a11bfd..66f41679a4eccf8a33cddd9605491c64d220d3be 100644 (file)
       <optional>
         <element name="vendor">
           <data type="string">
-            <param name="pattern">[x20-x7E]{0,8}</param>
+            <!-- All printable characters -->
+            <param name="pattern">[&#x20;-&#x7E;]{0,8}</param>
           </data>
         </element>
       </optional>
       <optional>
         <element name="product">
           <data type="string">
-            <param name="pattern">[x20-x7E]{0,16}</param>
+            <!-- All printable characters -->
+            <param name="pattern">[&#x20;-&#x7E;]{0,16}</param>
           </data>
         </element>
       </optional>
index df118e3bef3857ba124c72e82ee168459db72588..1831ebd7fb1a0076dbc59adba7336465b67a8de0 100644 (file)
@@ -24,6 +24,6 @@ QEMU_AUDIO_DRV=none \
 -device scsi-cd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,\
 id=scsi0-0-0-0,vendor=SEAGATE,product=ST3146707LC \
 -drive file=/dev/HostVG/QEMUGuest2,format=raw,if=none,id=drive-scsi1-0-0 \
--device scsi-hd,bus=scsi1.0,scsi-id=0,drive=drive-scsi1-0-0,id=scsi1-0-0,\
-vendor=SEAGATE,product=ST3567807GD \
+-device 'scsi-hd,bus=scsi1.0,scsi-id=0,drive=drive-scsi1-0-0,id=scsi1-0-0,\
+vendor=SEA GATE,product=ST67 807GD' \
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
index 13004c1889312549c669246874ac2e1351181f4f..b32b746ee807f885acdc9b846a26f17082318b9d 100644 (file)
@@ -26,8 +26,8 @@
       <source dev='/dev/HostVG/QEMUGuest2'/>
       <target dev='sdb' bus='scsi'/>
       <readonly/>
-      <vendor>SEAGATE</vendor>
-      <product>ST3567807GD</product>
+      <vendor>SEA GATE</vendor>
+      <product>ST67 807GD</product>
       <address type='drive' controller='1' bus='0' target='0' unit='0'/>
     </disk>
     <controller type='usb' index='0'/>
index 42c7bcddb2402a28d8573ef825eb7c53927bce5a..9e1e7af65809080e5df4bedb00d8266ac9d0d880 100644 (file)
@@ -26,8 +26,8 @@
       <source dev='/dev/HostVG/QEMUGuest2'/>
       <target dev='sdb' bus='scsi'/>
       <readonly/>
-      <vendor>SEAGATE</vendor>
-      <product>ST3567807GD</product>
+      <vendor>SEA GATE</vendor>
+      <product>ST67 807GD</product>
       <address type='drive' controller='1' bus='0' target='0' unit='0'/>
     </disk>
     <controller type='usb' index='0'>