[elbe-devel] [PATCH 2/3] schema: fs: extend XML schema for btrfs subvolumes

Daniel Braunwarth daniel at braunwarth.dev
Mon Oct 31 12:59:07 CET 2022


Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
 schema/dbsfed.xsd | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index e9e2381f7..85924637c 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -1565,6 +1565,42 @@ SPDX-FileCopyrightText: Linutronix GmbH
     <attribute ref="xml:base"/>
   </complexType>
 
+  <complexType name="subvolume">
+    <annotation>
+      <documentation>
+         btrfs subvolume
+      </documentation>
+    </annotation>
+    <all>
+      <element name="name" type="rfs:string" minOccurs="1" maxOccurs="1">
+        <annotation>
+          <documentation>
+            subvolume [destination/]name
+          </documentation>
+        </annotation>
+      </element>
+    </all>
+    <attribute ref="xml:base"/>
+  </complexType>
+
+  <complexType name="subvolumes">
+    <annotation>
+      <documentation>
+         container for btrfs subvolumes
+      </documentation>
+    </annotation>
+    <sequence>
+      <element name="subvolume" type="rfs:subvolume" minOccurs="1" maxOccurs="unbounded">
+        <annotation>
+          <documentation>
+            btrfs subvolume
+          </documentation>
+        </annotation>
+      </element>
+    </sequence>
+    <attribute ref="xml:base"/>
+  </complexType>
+
   <complexType name="fs">
     <annotation>
       <documentation>
@@ -1600,6 +1636,13 @@ SPDX-FileCopyrightText: Linutronix GmbH
           </documentation>
         </annotation>
       </element>
+      <element name="subvolumes" type="rfs:subvolumes" minOccurs="0" maxOccurs="1">
+        <annotation>
+          <documentation>
+            btrfs subvolumes to be created
+          </documentation>
+        </annotation>
+      </element>
     </all>
     <attribute ref="xml:base"/>
   </complexType>
-- 
2.38.1



More information about the elbe-devel mailing list