From: Peter Krempa Date: Thu, 30 Oct 2014 10:42:55 +0000 (+0100) Subject: util: storage: Add notice for extension of struct virStorageSource X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ceb3e59530a5007240049ad2613e20b86aa7afd5;p=libvirt.git util: storage: Add notice for extension of struct virStorageSource 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. --- diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h index 2583e107a6..209036f6b8 100644 --- a/src/util/virstoragefile.h +++ b/src/util/virstoragefile.h @@ -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;