Eric Blake
db7d7c0ee8
conf: restrict external snapshots to backing store formats
...
Domain snapshots should only permit an external snapshot into
a storage format that permits a backing chain, since the new
snapshot file necessarily must be backed by the existing file.
The C code for the qemu driver is a little bit stricter in
currently enforcing only qcow2 or qed, but at the XML parser
level, including virt-xml-validate, it is fairly easy to
enforce that a user can't request a 'raw' external snapshot.
* docs/schemas/storagecommon.rng (storageFormat): Split out...
(storageFormatBacking): ...new sublist.
* docs/schemas/domainsnapshot.rng (disksnapshotdriver): Use new
type.
* src/util/virstoragefile.h (virStorageFileFormat): Rearrange for
easier code management.
* src/util/virstoragefile.c (virStorageFileFormat, fileTypeInfo):
Likewise.
* src/conf/snapshot_conf.c (virDomainSnapshotDiskDefParseXML): Use
new marker to limit selection of formats.
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2014-04-15 13:57:15 +02:00
..
2012-02-01 16:28:17 -07:00
2012-02-03 15:27:16 -07:00
2012-02-03 15:27:16 -07:00
2014-03-27 06:58:46 -06:00
2014-04-15 13:57:15 +02:00
2013-05-03 15:56:15 +01:00
2013-08-09 17:13:02 +01:00
2013-10-04 13:38:57 -04:00
2014-01-06 21:41:02 -07:00
2013-12-02 10:21:26 +08:00
2014-03-18 14:29:22 +00:00
2014-03-13 06:54:56 +01:00
2013-05-03 15:56:15 +01:00
2011-10-28 10:11:16 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 11:59:18 -07:00
2013-08-09 17:13:02 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2014-03-27 06:52:20 -06:00
2013-07-09 16:15:29 -06:00
2013-07-01 11:08:58 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-01-15 09:12:25 -07:00
2014-03-01 23:44:58 +04:00
2014-03-01 23:44:58 +04:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-02-12 17:52:47 +00:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 16:58:46 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-03-03 17:41:26 +04:00
2013-05-16 16:28:53 +01:00
2013-09-29 18:40:36 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2014-02-24 18:55:00 +01:00
2014-02-20 14:53:36 -05:00
2013-08-15 11:40:50 +02:00
2014-03-13 18:30:09 -04:00
2014-02-14 16:47:14 +01:00
2014-02-14 11:07:29 +01:00
2014-03-05 09:51:24 +01:00
2013-05-03 15:56:15 +01:00
2013-08-09 17:13:02 +01:00
2013-01-18 15:36:38 +01:00
2013-05-03 15:56:15 +01:00
2014-02-04 10:43:15 -07:00
2013-07-09 11:49:20 -06:00
2013-07-09 11:49:20 -06:00
2014-03-25 14:58:41 +01:00
2014-02-18 14:46:49 +01:00
2013-06-25 01:13:16 +02:00
2014-03-01 23:44:58 +04:00
2013-08-23 08:12:26 +02:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2011-10-28 10:11:16 +01:00
2012-07-23 16:07:13 -06:00
2013-03-04 17:36:03 -05:00
2013-03-04 17:36:03 -05:00
2014-01-27 08:42:09 +01:00
2012-06-18 20:10:29 +01:00
2013-05-03 15:56:15 +01:00
2014-03-18 14:29:22 +00:00
2013-09-23 14:16:45 +02:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2011-10-28 10:11:16 +01:00
2011-10-28 10:07:45 +01:00
2013-07-30 07:07:33 -06:00
2013-10-30 17:30:12 +01:00
2014-04-01 15:29:53 +08:00
2011-10-28 10:11:16 +01:00
2014-01-30 15:37:38 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-12-02 10:21:26 +08:00
2012-08-10 10:58:38 +02:00
2013-09-12 17:18:32 +08:00
2013-10-15 11:33:01 +01:00
2013-11-26 18:37:09 +08:00
2013-05-03 16:58:46 +01:00
2014-03-01 23:44:58 +04:00
2014-04-01 08:44:34 +02:00
2011-10-28 10:11:16 +01:00
2010-12-02 16:00:47 -07:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-07 11:19:04 +01:00
2013-05-03 15:56:15 +01:00
2013-05-03 15:56:15 +01:00
2013-05-07 15:29:37 +01:00