diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index c4a22441c..94d782c56 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.181 - =================================== + Add defines DM_NAME_LIST_FLAG_HAS_UUID, DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID. Enhance tracking of activated devices when preloading dm tree. Fix bug in construction of cache table line (regression from 1.02.159). diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h index 52a7a93d1..cecfd5909 100644 --- a/libdm/misc/dm-ioctl.h +++ b/libdm/misc/dm-ioctl.h @@ -194,8 +194,22 @@ struct dm_name_list { uint32_t next; /* offset to the next record from the _start_ of this */ char name[0]; + + /* + * The following members can be accessed by taking a pointer that + * points immediately after the terminating zero character in "name" + * and aligning this pointer to next 8-byte boundary. + * Uuid is present if the flag DM_NAME_LIST_FLAG_HAS_UUID is set. + * + * uint32_t event_nr; + * uint32_t flags; + * char uuid[0]; + */ }; +#define DM_NAME_LIST_FLAG_HAS_UUID 1 +#define DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID 2 + /* * Used to retrieve the target versions */