]> git.proxmox.com Git - qemu.git/blobdiff - block_int.h
qapi: Introduce blockdev-group-snapshot-sync command
[qemu.git] / block_int.h
index bd86af00a2addd15a8263eb491fe9618e5f97272..b460c369ca1ab06372418223c746e72624442036 100644 (file)
@@ -221,6 +221,12 @@ struct BlockDriver {
     QLIST_ENTRY(BlockDriver) list;
 };
 
+/*
+ * Note: the function bdrv_append() copies and swaps contents of
+ * BlockDriverStates, so if you add new fields to this struct, please
+ * inspect bdrv_append() to determine if the new fields need to be
+ * copied as well.
+ */
 struct BlockDriverState {
     int64_t total_sectors; /* if we are reading a disk image, give its
                               size in sectors */