[Libguestfs] [PATCH nbdkit 3/4] common: regions: Add description field to ease debugging.
Richard W.M. Jones
rjones at redhat.com
Sun Oct 28 10:13:27 UTC 2018
---
common/regions/regions.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/regions/regions.h b/common/regions/regions.h
index 2036767..ca9b3d5 100644
--- a/common/regions/regions.h
+++ b/common/regions/regions.h
@@ -62,6 +62,12 @@ struct region {
size_t i; /* region_file: i'th file */
const unsigned char *data; /* region_data: data */
} u;
+
+ /* Optional name or description of this region. This is not used by
+ * the regions code but can be added to regions to make debugging
+ * easier.
+ */
+ const char *description;
};
/* Array of regions. */
--
2.19.0.rc0
More information about the Libguestfs
mailing list