A nodedev can have 'scsi_generic' capabilities but corresponding
RNG is missing. Fortunately, it's very simple - there's only one
mandatory child element <char/>.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
docs/schemas/nodedev.rng | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng
index 789b21b8da..4ad6708b70 100644
--- a/docs/schemas/nodedev.rng
+++ b/docs/schemas/nodedev.rng
@@ -78,6 +78,7 @@
<ref name="capusbdev"/>
<ref name="capusbinterface"/>
<ref name="capnet"/>
+ <ref name="capscsigeneric"/>
<ref name="capscsihost"/>
<ref name="capscsitarget"/>
<ref name="capscsi"/>
@@ -421,6 +422,16 @@
</element>
</define>
+ <define name="capscsigeneric">
+ <attribute name="type">
+ <value>scsi_generic</value>
+ </attribute>
+
+ <element name='char'>
+ <text/>
+ </element>
+ </define>
+
<define name="capscsihost">
<attribute name="type">
<value>scsi_host</value>
--
2.32.0