]> xenbits.xensource.com Git - libvirt.git/commit
schema: Don't validate paths
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Aug 2016 08:52:30 +0000 (10:52 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Aug 2016 08:59:21 +0000 (10:59 +0200)
commitc4b92f1a8a9cb64a2c4a9f0ed899ed8a7d95d935
tree853de1cee32dc959a026ad0a55fea0b8608860ce
parent9aea8cd4ae76b5f62ea365dd56d4d9beb96bb024
schema: Don't validate paths

https://bugzilla.redhat.com/show_bug.cgi?id=1353296

On UNIX like systems there are no constraints on what characters
can be in file/dir names (except for NULL, obviously). Moreover,
some values that we think of as paths (e.g. disk source) are not
necessarily paths at all. For instance, some hypervisors take
that as an arbitrary identifier and corresponding file is then
looked up by hypervisor in its table. Instead of trying to fix
our regular expressions (and forgetting to include yet another
character there), lets drop the validation completely.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/basictypes.rng
tests/domainschemadata/domain-disk-source-space.xml [new file with mode: 0644]