Eric Blake
c123ef7104
conf: store disk source as pointer, for easier manipulation
...
As part of the work on backing chains, I'm finding that it would
be easier to directly manipulate chains of pointers (adding a
snapshot merely adjusts pointers to form the correct list) rather
than copy data from one struct to another. This patch converts
domain disk source to be a pointer.
In this patch, the pointer is ALWAYS allocated (thanks in part to
the previous patch forwarding all disk def allocation through a
common point), and all other changse are just mechanical fallout of
the new type; there should be no functional change. It is possible
that we may want to leave the pointer NULL for a cdrom with no
medium in a later patch, but as that requires a closer audit of the
source to ensure we don't fault on a null dereference, I didn't do
it here.
* src/conf/domain_conf.h (_virDomainDiskDef): Change type of src.
* src/conf/domain_conf.c: Adjust all clients.
* src/security/security_selinux.c: Likewise.
* src/qemu/qemu_domain.c: Likewise.
* src/qemu/qemu_command.c: Likewise.
* src/qemu/qemu_conf.c: Likewise.
* src/qemu/qemu_process.c: Likewise.
* src/qemu/qemu_migration.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
* src/lxc/lxc_controller.c: Likewise.
* tests/securityselinuxlabeltest.c: Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-06 09:56:28 -06:00
..
2014-04-08 20:50:36 +04:00
2014-04-08 20:50:36 +04:00
2013-10-29 07:06:04 -06:00
2013-05-06 14:01:08 -06:00
2012-03-27 09:54:49 -06:00
2014-01-28 21:27:37 +01:00
2014-02-20 15:50:46 +00:00
2014-04-24 16:06:13 +02:00
2014-04-16 10:45:55 +02:00
2014-01-29 12:56:35 +01:00
2013-05-13 17:24:18 +08:00
2010-01-19 21:13:03 +01:00
2014-04-07 10:52:28 -06:00
2014-01-10 10:54:14 -07:00
2013-11-07 18:43:15 +01:00
2014-03-26 16:42:43 +02:00
2014-04-25 15:44:09 +01:00
2013-09-17 17:47:33 -06:00
2014-02-04 12:00:26 +02:00
2013-08-28 08:05:46 +02:00
2014-02-04 12:00:26 +02:00
2014-06-06 15:10:57 +02:00
2014-06-06 10:52:05 +02:00
2014-04-25 15:44:10 +01:00
2012-05-21 06:26:34 -04:00
2012-05-21 06:26:34 -04:00
2014-05-07 10:27:50 +02:00
2014-03-26 13:41:25 +01:00
2013-09-02 14:45:38 +02:00
2014-03-19 14:48:58 +01:00
2013-11-08 09:44:36 +01:00
2014-05-27 08:48:57 +02:00
2014-04-24 16:07:56 +02:00
2013-09-02 16:53:39 -04:00
2014-02-14 16:47:14 +01:00
2014-03-07 14:02:10 +01:00
2013-08-20 10:46:58 -06:00
2014-04-24 16:06:18 +02:00
2013-05-17 08:33:22 +02:00
2013-11-25 11:03:19 -07:00
2013-11-25 11:03:19 -07:00
2013-05-17 08:35:08 +02:00
2013-08-27 12:45:58 +02:00
2013-11-25 12:46:19 -07:00
2013-11-25 12:46:19 -07:00
2014-01-01 16:34:13 +00:00
2014-06-05 13:58:13 +02:00
2013-11-28 11:49:01 +00:00
2014-01-25 12:53:11 +01:00
2014-03-29 21:14:15 +01:00
2014-03-03 14:35:22 +01:00
2013-09-30 16:58:37 -05:00
2014-02-19 09:16:31 +01:00
2011-11-30 10:12:30 +00:00
2014-02-19 09:16:31 +01:00
2012-04-02 09:33:54 -06:00
2013-10-15 11:39:02 +01:00
2013-08-01 17:04:28 -04:00
2014-03-27 08:33:41 +04:00
2014-05-04 17:43:54 +04:00
2014-04-08 20:50:36 +04:00
2010-01-15 16:28:05 +00:00
2014-03-25 14:58:41 +01:00
2014-03-25 17:13:27 -04:00
2013-08-22 11:38:36 +02:00
2014-04-25 11:59:46 +01:00
2012-05-08 16:57:37 -06:00
2014-03-25 14:58:41 +01:00
2013-10-09 17:44:45 +02:00
2010-05-20 13:50:03 -04:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-18 14:29:22 +00:00
2014-03-25 14:58:41 +01:00
2014-04-25 11:59:46 +01:00
2011-07-29 17:17:21 +02:00
2010-01-15 16:28:05 +00:00
2014-03-18 11:29:44 +01:00
2014-03-25 14:58:41 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-06-05 13:58:13 +02:00
2014-03-25 14:58:41 +01:00
2010-01-15 16:28:05 +00:00
2014-03-25 14:58:41 +01:00
2014-04-30 10:16:09 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2010-01-15 16:28:05 +00:00
2014-03-18 11:29:44 +01:00
2014-03-25 14:58:41 +01:00
2014-04-30 12:51:38 -04:00
2010-04-06 11:09:46 -04:00
2014-04-25 15:44:10 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-18 10:20:49 +01:00
2012-07-30 13:09:57 +01:00
2014-03-25 14:58:41 +01:00
2011-06-01 11:58:15 +02:00
2011-07-22 15:18:32 +01:00
2014-05-12 21:24:23 -06:00
2014-04-11 13:02:09 -06:00
2014-03-25 14:58:41 +01:00
2014-03-27 07:22:10 +01:00
2014-05-06 14:32:33 +03:00
2014-03-26 13:49:47 +01:00
2014-06-03 14:24:14 +02:00
2013-10-08 12:39:30 +01:00
2014-06-03 17:19:24 +02:00
2013-10-01 10:48:47 +02:00
2014-02-06 15:15:10 +01:00
2014-05-27 08:48:57 +02:00
2014-05-19 08:47:03 +02:00
2014-04-25 11:59:46 +01:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2014-03-03 12:40:32 -07:00
2013-08-23 15:23:44 -06:00
2013-02-25 17:38:11 -07:00
2014-02-14 16:47:14 +01:00
2014-03-25 14:58:41 +01:00
2014-05-28 16:52:48 -06:00
2014-06-06 09:56:28 -06:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-20 17:06:38 +01:00
2013-07-29 13:09:39 -06:00
2014-03-20 12:15:00 +00:00
2013-07-29 13:09:39 -06:00
2012-07-27 07:42:34 -06:00
2014-03-18 11:29:44 +01:00
2014-04-02 06:03:00 -06:00
2013-05-17 08:33:22 +02:00
2014-03-25 14:58:41 +01:00
2013-05-17 08:35:08 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2013-03-19 13:13:28 -06:00
2013-09-13 10:25:56 +02:00
2014-04-25 15:44:09 +01:00
2014-04-25 15:44:09 +01:00
2014-03-25 14:58:41 +01:00
2014-03-18 12:17:12 +01:00
2014-05-27 08:48:57 +02:00
2013-05-31 11:35:34 -06:00
2014-03-25 14:58:41 +01:00
2014-03-18 12:17:12 +01:00
2013-10-08 12:39:30 +01:00
2012-07-27 07:42:34 -06:00
2014-04-25 11:29:55 +01:00
2013-11-20 09:14:55 -07:00
2014-03-25 14:58:41 +01:00
2014-06-06 16:52:27 +02:00
2014-03-25 14:58:41 +01:00
2014-06-05 13:58:13 +02:00
2014-06-04 09:35:55 +02:00
2014-03-25 14:58:41 +01:00
2014-04-09 16:24:08 +02:00
2014-03-10 16:39:18 +00:00
2014-03-31 14:56:17 -06:00
2014-04-25 11:59:46 +01:00
2014-03-25 14:58:41 +01:00
2013-11-28 11:49:01 +00:00
2014-05-02 16:19:34 +04:00
2012-01-26 14:11:13 +00:00
2014-03-25 14:58:41 +01:00
2014-04-28 22:58:10 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2013-10-14 10:31:01 +01:00
2014-04-25 15:48:30 +01:00
2014-05-20 15:16:22 -06:00
2014-04-07 11:35:29 +02:00
2014-03-25 14:58:41 +01:00
2013-09-24 09:37:26 +01:00
2013-10-08 12:39:30 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-18 14:29:22 +00:00
2013-08-09 11:54:41 +01:00
2014-03-25 14:58:41 +01:00
2014-04-08 11:15:55 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-29 21:14:15 +01:00
2013-08-12 18:47:56 +02:00
2014-03-18 08:27:29 +01:00
2013-04-03 08:49:30 +02:00
2012-07-27 07:42:34 -06:00
2012-09-12 11:27:22 -06:00
2013-09-13 10:25:56 +02:00
2014-03-25 14:58:41 +01:00
2014-06-03 09:51:49 +02:00
2014-06-03 09:27:24 +02:00
2014-05-20 15:16:22 -06:00
2014-04-21 16:49:08 -06:00
2014-06-01 05:21:19 +03:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-20 17:06:38 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00