From 110c0db88c27eb44f6cceb02873a32f559559ed2 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 11 Apr 2014 19:33:45 -0600 Subject: [PATCH] conf: create common storage RNG grammar file Having two tiny files with a couple definitions didn't make as much sense as one common file, especially since I plan to add more definitions and use it in more places. * docs/schemas/storageencryption.rng: Merge this... * docs/schemas/storagefilefeatures.rng: ...and this, into... * docs/schemas/storagecommon.rng: ...this new file. * docs/schemas/Makefile.am (schema_DATA): Reflect renames. * docs/schemas/storagevol.rng: Likewise. * docs/schemas/domaincommon.rng: Likewise. * libvirt.spec.in: Likewise. * mingw-libvirt.spec.in: Likewise. Signed-off-by: Eric Blake --- docs/schemas/Makefile.am | 5 ++-- docs/schemas/domaincommon.rng | 2 +- ...torageencryption.rng => storagecommon.rng} | 26 +++++++++++++++++-- docs/schemas/storagefilefeatures.rng | 24 ----------------- docs/schemas/storagevol.rng | 3 +-- libvirt.spec.in | 3 +-- mingw-libvirt.spec.in | 6 ++--- 7 files changed, 31 insertions(+), 38 deletions(-) rename docs/schemas/{storageencryption.rng => storagecommon.rng} (52%) delete mode 100644 docs/schemas/storagefilefeatures.rng diff --git a/docs/schemas/Makefile.am b/docs/schemas/Makefile.am index 47d1941a51..d71c327f05 100644 --- a/docs/schemas/Makefile.am +++ b/docs/schemas/Makefile.am @@ -1,4 +1,4 @@ -## Copyright (C) 2005-2011, 2013 Red Hat, Inc. +## Copyright (C) 2005-2011, 2013-2014 Red Hat, Inc. ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public @@ -27,8 +27,7 @@ schema_DATA = \ nodedev.rng \ nwfilter.rng \ secret.rng \ - storageencryption.rng \ - storagefilefeatures.rng \ + storagecommon.rng \ storagepool.rng \ storagevol.rng diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index bcd814273c..8c1724a3d0 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2,7 +2,7 @@ - + + + + @@ -25,9 +28,28 @@ - + + + + + [0-9]+\.[0-9]+ + + + + + + + + + + + + + + + diff --git a/docs/schemas/storagefilefeatures.rng b/docs/schemas/storagefilefeatures.rng deleted file mode 100644 index 424b4e2318..0000000000 --- a/docs/schemas/storagefilefeatures.rng +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - [0-9]+\.[0-9]+ - - - - - - - - - - - - - - - diff --git a/docs/schemas/storagevol.rng b/docs/schemas/storagevol.rng index 8f07d8f9d6..df8c1eb7a5 100644 --- a/docs/schemas/storagevol.rng +++ b/docs/schemas/storagevol.rng @@ -7,8 +7,7 @@ - - + diff --git a/libvirt.spec.in b/libvirt.spec.in index 4e70a41486..520561da67 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -2171,8 +2171,7 @@ exit 0 %{_datadir}/libvirt/schemas/nodedev.rng %{_datadir}/libvirt/schemas/nwfilter.rng %{_datadir}/libvirt/schemas/secret.rng -%{_datadir}/libvirt/schemas/storageencryption.rng -%{_datadir}/libvirt/schemas/storagefilefeatures.rng +%{_datadir}/libvirt/schemas/storagecommon.rng %{_datadir}/libvirt/schemas/storagepool.rng %{_datadir}/libvirt/schemas/storagevol.rng diff --git a/mingw-libvirt.spec.in b/mingw-libvirt.spec.in index 1734a48d8a..1b505e6e89 100644 --- a/mingw-libvirt.spec.in +++ b/mingw-libvirt.spec.in @@ -211,8 +211,7 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_libexecdir}/libvirt-guests.sh %{mingw32_datadir}/libvirt/schemas/nodedev.rng %{mingw32_datadir}/libvirt/schemas/nwfilter.rng %{mingw32_datadir}/libvirt/schemas/secret.rng -%{mingw32_datadir}/libvirt/schemas/storageencryption.rng -%{mingw32_datadir}/libvirt/schemas/storagefilefeatures.rng +%{mingw32_datadir}/libvirt/schemas/storagecommon.rng %{mingw32_datadir}/libvirt/schemas/storagepool.rng %{mingw32_datadir}/libvirt/schemas/storagevol.rng %dir %{mingw32_datadir}/libvirt/api/ @@ -272,8 +271,7 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_libexecdir}/libvirt-guests.sh %{mingw64_datadir}/libvirt/schemas/nodedev.rng %{mingw64_datadir}/libvirt/schemas/nwfilter.rng %{mingw64_datadir}/libvirt/schemas/secret.rng -%{mingw64_datadir}/libvirt/schemas/storageencryption.rng -%{mingw64_datadir}/libvirt/schemas/storagefilefeatures.rng +%{mingw64_datadir}/libvirt/schemas/storagecommon.rng %{mingw64_datadir}/libvirt/schemas/storagepool.rng %{mingw64_datadir}/libvirt/schemas/storagevol.rng %dir %{mingw64_datadir}/libvirt/api/ -- GitLab