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
This commit is contained in:
Peter Krempa
2014-05-28 15:47:38 +02:00
parent bbfc826787
commit b325be128a
3 changed files with 53 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
<pool type='netfs'>
<source>
<host name='example.com'/>
<format type='glusterfs'/>
<dir path='volume'/>
</source>
<name>netfs-gluster</name>
<uuid>d5609ced-94b1-489e-b218-eff35c30336a</uuid>
<target>
<path>/mnt/gluster</path>
</target>
</pool>