]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: storage: Add notice for extension of struct virStorageSource
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Oct 2014 10:42:55 +0000 (11:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Nov 2014 13:37:02 +0000 (14:37 +0100)
As we now have a deep copy function for struct virStorageSource add a
notice that extensions of the structure require also appropriate changes
to the virStorageSourceCopy func.

src/util/virstoragefile.h

index 2583e107a6cc4b0645cf58fe2348368a8d791219..209036f6b8046d01e85a15de7dc6824a301dee26 100644 (file)
@@ -228,9 +228,11 @@ typedef virStorageDriverData *virStorageDriverDataPtr;
 typedef struct _virStorageSource virStorageSource;
 typedef virStorageSource *virStorageSourcePtr;
 
-/* Stores information related to a host resource.  In the case of
- * backing chains, multiple source disks join to form a single guest
- * view.  */
+/* Stores information related to a host resource.  In the case of backing
+ * chains, multiple source disks join to form a single guest view.
+ *
+ * IMPORTANT: When adding fields to this struct it's also necessary to add
+ * appropriate code to the virStorageSourceCopy deep copy function */
 struct _virStorageSource {
     int type; /* virStorageType */
     char *path;