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.
This commit is contained in:
parent
7be41e787d
commit
ceb3e59530
@ -228,9 +228,11 @@ typedef virStorageDriverData *virStorageDriverDataPtr;
|
|||||||
typedef struct _virStorageSource virStorageSource;
|
typedef struct _virStorageSource virStorageSource;
|
||||||
typedef virStorageSource *virStorageSourcePtr;
|
typedef virStorageSource *virStorageSourcePtr;
|
||||||
|
|
||||||
/* Stores information related to a host resource. In the case of
|
/* Stores information related to a host resource. In the case of backing
|
||||||
* backing chains, multiple source disks join to form a single guest
|
* chains, multiple source disks join to form a single guest view.
|
||||||
* view. */
|
*
|
||||||
|
* IMPORTANT: When adding fields to this struct it's also necessary to add
|
||||||
|
* appropriate code to the virStorageSourceCopy deep copy function */
|
||||||
struct _virStorageSource {
|
struct _virStorageSource {
|
||||||
int type; /* virStorageType */
|
int type; /* virStorageType */
|
||||||
char *path;
|
char *path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user