[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 2/4] doc/schema: Support iqn for storage pools

On 2013年03月20日 18:45, Philipp Hahn wrote:
iSCSO qualified names (iqn) from RFC3721 may contain colons (':'), which
neither matches the absFilePath nor genericName:

  $ virsh pool-dumpxml myiscsipool
  <pool type='iscsi'>
      <device path='iqn.2003-01.org.linux-iscsi.phahn-sid93.x8664:sn.8a3daa0d4efd'/>

Add IscsiQualifiedName type and allow its use in sourceiscsi.

Signed-off-by: Philipp Hahn<hahn univention de>
  docs/schemas/storagepool.rng |    8 +++++++-
  1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng
index 2b1f08d..0cc0406 100644
--- a/docs/schemas/storagepool.rng
+++ b/docs/schemas/storagepool.rng
@@ -231,6 +231,7 @@
            <ref name='absFilePath'/>
            <ref name='genericName'/>
+<ref name='IscsiQualifiedName'/>
@@ -492,7 +493,6 @@
          <ref name='sourceinfovendor'/>

@@ -519,6 +519,12 @@

+<define name='IscsiQualifiedName'>
+<data type='string'>
+<param name="pattern">iqn\.[0-9]{4}-(0[1-9]|1[0-2])\.[a-zA-Z0-9\.\-]+(:.+)?</param>
    <define name="PortNumber">
      <data type="short">
        <param name="minInclusive">-1</param>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]