FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 12-04-2007, 11:44 PM
David Lutterkort
 
Default Allow relative paths, not just file names where files are referenced

diff -r 6fb5cb8419d3 -r 4227c03796d6 doc/image.rng
--- a/doc/image.rng Sat Dec 01 12:12:41 2007 -0500
+++ b/doc/image.rng Tue Dec 04 15:17:10 2007 -0800
@@ -116,9 +116,9 @@
Boot a kernel/initrd contained in the image
-->
<group>
- <element name="kernel"><ref name="fileName"/></element>
- <optional>
- <element name="initrd"><ref name="fileName"/></element>
+ <element name="kernel"><ref name="relFilePath"/></element>
+ <optional>
+ <element name="initrd"><ref name="relFilePath"/></element>
</optional>
<optional>
<element name="cmdline"><text/></element>
@@ -135,7 +135,7 @@
-->
<oneOrMore>
<element name="drive">
- <attribute name="disk"><ref name="fileName"/></attribute>
+ <attribute name="disk"><ref name="relFilePath"/></attribute>
<optional>
<attribute name="target"><ref name="deviceName"/></attribute>
</optional>
@@ -161,7 +161,7 @@
iso for an ISO
-->
<element name="disk">
- <attribute name="file"><ref name="fileName"/></attribute>
+ <attribute name="file"><ref name="relFilePath"/></attribute>
<attribute name="use">
<choice>
<value>system</value>
@@ -229,6 +229,11 @@
<param name="pattern">[^/]+</param>
</data>
</define>
+ <define name='relFilePath'>
+ <data type='string'>
+ <param name="pattern">[a-zA-Z0-9_+-%.][a-zA-Z0-9_+-%./]*</param>
+ </data>
+ </define>
<define name='deviceName'>
<data type='string'>
<param name="pattern">[a-zA-Z0-9_-:./]+</param>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 12-04-2007, 11:51 PM
"Daniel P. Berrange"
 
Default Allow relative paths, not just file names where files are referenced

On Tue, Dec 04, 2007 at 04:44:56PM -0800, David Lutterkort wrote:
> diff -r 6fb5cb8419d3 -r 4227c03796d6 doc/image.rng
> --- a/doc/image.rng Sat Dec 01 12:12:41 2007 -0500
> +++ b/doc/image.rng Tue Dec 04 15:17:10 2007 -0800
> @@ -116,9 +116,9 @@
> Boot a kernel/initrd contained in the image
> -->
> <group>
> - <element name="kernel"><ref name="fileName"/></element>
> - <optional>
> - <element name="initrd"><ref name="fileName"/></element>
> + <element name="kernel"><ref name="relFilePath"/></element>
> + <optional>
> + <element name="initrd"><ref name="relFilePath"/></element>
> </optional>
> <optional>
> <element name="cmdline"><text/></element>
> @@ -135,7 +135,7 @@

Is this really just a schema change - no code change required ? In any case,
ACK.

Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 12:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org