]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: move storage encryption type to util/
authorEric Blake <eblake@redhat.com>
Fri, 28 Mar 2014 03:26:44 +0000 (21:26 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 1 Apr 2014 16:38:13 +0000 (10:38 -0600)
Encryption keys can be associated with each source file in a
backing chain; as such, this file belongs more in util/ where
it can be used by virstoragefile.h.

* src/conf/storage_encryption_conf.h: Rename...
* src/util/virstorageencryption.h: ...to this.
* src/conf/storage_encryption_conf.c: Rename...
* src/util/virstorageencryption.c: ...to this.
* src/Makefile.am (ENCRYPTION_CONF_SOURCES, CONF_SOURCES)
(UTIL_SOURCES): Update to new file names.
* src/libvirt_private.syms: Likewise.
* src/conf/domain_conf.h: Update client.
* src/conf/storage_conf.h: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
po/POTFILES.in
src/Makefile.am
src/conf/domain_conf.h
src/conf/storage_conf.h
src/libvirt_private.syms
src/util/virstorageencryption.c [moved from src/conf/storage_encryption_conf.c with 98% similarity]
src/util/virstorageencryption.h [moved from src/conf/storage_encryption_conf.h with 95% similarity]

index 5a4112a3ead90e7deecc30322ecba3e61492e119..122b85383fbe7a84077302c87f0971cb41bfd9fa 100644 (file)
@@ -28,7 +28,6 @@ src/conf/object_event.c
 src/conf/secret_conf.c
 src/conf/snapshot_conf.c
 src/conf/storage_conf.c
-src/conf/storage_encryption_conf.c
 src/conf/virchrdev.c
 src/cpu/cpu.c
 src/cpu/cpu_generic.c
@@ -193,6 +192,7 @@ src/util/virsexpr.c
 src/util/virscsi.c
 src/util/virsocketaddr.c
 src/util/virstatslinux.c
+src/util/virstorageencryption.c
 src/util/virstoragefile.c
 src/util/virstring.c
 src/util/virsysinfo.c
index 54206e4131e9a5d901fbbeea1b57a48c03cd476b..38b269758c6e86139820d1abff38c355ba20117c 100644 (file)
@@ -146,6 +146,7 @@ UTIL_SOURCES =                                                      \
                util/virsexpr.c util/virsexpr.h                 \
                util/virsocketaddr.h util/virsocketaddr.c       \
                util/virstatslinux.c util/virstatslinux.h       \
+               util/virstorageencryption.c util/virstorageencryption.h \
                util/virstoragefile.c util/virstoragefile.h     \
                util/virstring.h util/virstring.c               \
                util/virsysinfo.c util/virsysinfo.h             \
@@ -288,9 +289,6 @@ SECRET_CONF_SOURCES =                                          \
 NODE_DEVICE_CONF_SOURCES =                                     \
                conf/node_device_conf.c conf/node_device_conf.h
 
-ENCRYPTION_CONF_SOURCES =                                      \
-               conf/storage_encryption_conf.c conf/storage_encryption_conf.h
-
 CPU_CONF_SOURCES =                                             \
                conf/cpu_conf.c conf/cpu_conf.h
 
@@ -312,7 +310,6 @@ CONF_SOURCES =                                                      \
                $(NWFILTER_CONF_SOURCES)                        \
                $(NODE_DEVICE_CONF_SOURCES)                     \
                $(STORAGE_CONF_SOURCES)                         \
-               $(ENCRYPTION_CONF_SOURCES)                      \
                $(INTERFACE_CONF_SOURCES)                       \
                $(SECRET_CONF_SOURCES)                          \
                $(CPU_CONF_SOURCES)                             \
index bf92593e3adbdf9eb1e88f3aebe627502ed4bc70..b2eeefd69b7b9322c2e82323e6b9b63593f0d618 100644 (file)
@@ -30,7 +30,7 @@
 
 # include "internal.h"
 # include "capabilities.h"
-# include "storage_encryption_conf.h"
+# include "virstorageencryption.h"
 # include "cpu_conf.h"
 # include "virthread.h"
 # include "virhash.h"
index e410f414488627e7b32cc227dbd4e5e30bc1d0d5..b8110468488e36a98ff38106728fbac15734111b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * storage_conf.h: config handling for storage driver
  *
- * Copyright (C) 2006-2008, 2010-2013 Red Hat, Inc.
+ * Copyright (C) 2006-2008, 2010-2014 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -25,7 +25,7 @@
 # define __VIR_STORAGE_CONF_H__
 
 # include "internal.h"
-# include "storage_encryption_conf.h"
+# include "virstorageencryption.h"
 # include "virbitmap.h"
 # include "virthread.h"
 
index 99781a241cfee37fe1921a9d03271839253d559c..60c2d447c4f7ad620efdd5946431826c04785a2e 100644 (file)
@@ -729,13 +729,6 @@ virStorageVolTypeFromString;
 virStorageVolTypeToString;
 
 
-# conf/storage_encryption_conf.h
-virStorageEncryptionFormat;
-virStorageEncryptionFree;
-virStorageEncryptionParseNode;
-virStorageGenerateQcowPassphrase;
-
-
 # conf/virchrdev.h
 virChrdevAlloc;
 virChrdevFree;
@@ -1815,6 +1808,13 @@ virSocketAddrSetIPv4Addr;
 virSocketAddrSetPort;
 
 
+# util/virstorageencryption.h
+virStorageEncryptionFormat;
+virStorageEncryptionFree;
+virStorageEncryptionParseNode;
+virStorageGenerateQcowPassphrase;
+
+
 # util/virstoragefile.h
 virStorageFileChainGetBroken;
 virStorageFileChainLookup;
similarity index 98%
rename from src/conf/storage_encryption_conf.c
rename to src/util/virstorageencryption.c
index bba067b9043a1b67a24247f9eba2ba3241690197..90892784cc545aa24025a855eb9cd28dab0e6baa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * storage_encryption_conf.c: volume encryption information
+ * virstorageencryption.c: volume encryption information
  *
  * Copyright (C) 2009-2014 Red Hat, Inc.
  *
@@ -29,8 +29,7 @@
 
 #include "virbuffer.h"
 #include "viralloc.h"
-#include "storage_conf.h"
-#include "storage_encryption_conf.h"
+#include "virstorageencryption.h"
 #include "virxml.h"
 #include "virerror.h"
 #include "viruuid.h"
similarity index 95%
rename from src/conf/storage_encryption_conf.h
rename to src/util/virstorageencryption.h
index 57ab1a01355da50b3de5c1d66a2d33150e4d6e54..03c38a57a0246082dec4f42377b158bb17caf0b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * storage_encryption_conf.h: volume encryption information
+ * virstorageencryption.h: volume encryption information
  *
- * Copyright (C) 2009-2011 Red Hat, Inc.
+ * Copyright (C) 2009-2011, 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