main - devicemapper: add DM_NAME_LIST_FLAG
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=707e7d762e2668af308457fd6d8b8375e18b0207 Commit: 707e7d762e2668af308457fd6d8b8375e18b0207 Parent: 566c2f1828d371d602eca0353905128d069a159b Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Sep 22 21:24:39 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Sep 23 16:49:16 2021 +0200
devicemapper: add DM_NAME_LIST_FLAG
Match libdm part
--- device_mapper/misc/dm-ioctl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
device_mapper/misc/dm-ioctl.h +14 -0
@@ -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 */