[PATCH 1/3] schemas: Make <type/> for capscsi type optional

Michal Privoznik mprivozn at redhat.com
Thu Sep 16 11:56:25 UTC 2021


The <type/> element for <capability type='scsi'> part of nodedev
XML is optional (see udevProcessSCSIDevice()) and as such might
not be formatted into nodedev XML (see
virNodeDeviceCapSCSIDefFormat()). Reflect this in our RNG.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 docs/schemas/nodedev.rng | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
index 777227c38a..789b21b8da 100644
--- a/docs/schemas/nodedev.rng
+++ b/docs/schemas/nodedev.rng
@@ -496,9 +496,11 @@
       <ref name="unsignedLong"/>
     </element>
 
-    <element name="type">
-      <text/>
-    </element>
+    <optional>
+      <element name="type">
+        <text/>
+      </element>
+    </optional>
   </define>
 
   <define name="capstorage">
-- 
2.32.0




More information about the libvir-list mailing list