From: Peter Krempa Date: Wed, 28 May 2014 13:47:38 +0000 (+0200) Subject: schema: pool: netfs: Don't enforce slash in glusterfs pool source X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b325be128acf901d6966df097ceea2b8349f3ee5;p=libvirt.git schema: pool: netfs: Don't enforce slash in glusterfs pool source Gluster volumes don't start with a leading slash. Our schema for netfs gluster pools enforces it though. Luckily mount.glusterfs skips it. Allow a slashless volume name for glusterfs netfs mounts in the schema. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1101999 --- diff --git a/docs/schemas/basictypes.rng b/docs/schemas/basictypes.rng index 5fe3a97dae..6d357b7340 100644 --- a/docs/schemas/basictypes.rng +++ b/docs/schemas/basictypes.rng @@ -231,6 +231,12 @@ + + + [a-zA-Z0-9_\.\+\-\\&"'<>/%]+ + + + /[a-zA-Z0-9_\.\+\-\\&"'<>/%,]+ diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng index 8d7a94d656..b2d1473309 100644 --- a/docs/schemas/storagepool.rng +++ b/docs/schemas/storagepool.rng @@ -327,6 +327,15 @@ + + + + + + + + + @@ -394,7 +403,6 @@ auto nfs cifs - glusterfs @@ -468,14 +476,32 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + glusterfs + + + + + + + + diff --git a/tests/storagepoolxml2xmlin/pool-netfs-gluster-without-slash.xml b/tests/storagepoolxml2xmlin/pool-netfs-gluster-without-slash.xml new file mode 100644 index 0000000000..69a2c6d2d3 --- /dev/null +++ b/tests/storagepoolxml2xmlin/pool-netfs-gluster-without-slash.xml @@ -0,0 +1,12 @@ + + + + + + + netfs-gluster + d5609ced-94b1-489e-b218-eff35c30336a + + /mnt/gluster + +