[elbe-devel] [PATCH 3/7] Add definition of 'finetuning/file' XML tag

Torben Hohn torben.hohn at linutronix.de
Fri May 17 14:40:44 CEST 2019


On Fri, May 17, 2019 at 11:16:57AM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
> 
> The tag 'file' can be used under the tag 'finetuning'.
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

this looks good.

However, this should be folded with the actual implementation.

this is a bit confusing, i guess. 

But these things belong together, and can not work without each other.

> ---
>  schema/dbsfed.xsd | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 
> diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
> index 333c0a8b..a8bce721 100644
> --- a/schema/dbsfed.xsd
> +++ b/schema/dbsfed.xsd
> @@ -1737,6 +1737,13 @@
>            </documentation>
>          </annotation>
>        </element>
> +      <element name="file" type="rfs:file" minOccurs="0">
> +        <annotation>
> +          <documentation>
> +	    write or append text to a file
> +          </documentation>
> +        </annotation>
> +      </element>
>        <element name="rm" type="rfs:rm" minOccurs="0">
>          <annotation>
>            <documentation>
> @@ -2085,6 +2092,35 @@
>      </simpleContent>
>    </complexType>
>  
> +    <complexType name="file">
> +    <annotation>
> +      <documentation>
> +        write or append text to a file, the following parameters
> +        are avaible:
> +        
> +        'dst' - the destination to write to
> +        'encoding' - the (optional) encoding of the content
> +        'append="True"' - append the content to file instead of writing
> +        'owner' - (optional) set file owner
> +        'group' - (optional) set group ownership
> +        'mode' - (optional) set file mode bits
> +        
> +        The value of the tag is the raw/encoded content to
> +        write/append to the destination
> +      </documentation>
> +    </annotation>
> +    <simpleContent>
> +      <extension base="rfs:string">
> +        <attribute name="dst"      type="string"  use="required" />
> +        <attribute name="encoding" type="string"  use="optional" />
> +        <attribute name="append"   type="boolean" use="optional" />
> +        <attribute name="owner"    type="string"  use="optional" />
> +        <attribute name="group"    type="string"  use="optional" />
> +        <attribute name="mode"     type="string"  use="optional" />
> +      </extension>
> +    </simpleContent>
> +  </complexType>
> +
>    <complexType name="adduser">
>      <annotation>
>        <documentation>
> -- 
> 2.21.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190517/c456508f/attachment.sig>


More information about the elbe-devel mailing list