From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - devicemapper: add DM_NAME_LIST_FLAG
Date: Thu, 23 Sep 2021 14:52:37 +0000 (GMT) [thread overview]
Message-ID: <20210923145237.515B93858D34@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=707e7d762e2668af308457fd6d8b8375e18b0207
Commit: 707e7d762e2668af308457fd6d8b8375e18b0207
Parent: 566c2f1828d371d602eca0353905128d069a159b
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Wed Sep 22 21:24:39 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
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(+)
diff --git a/device_mapper/misc/dm-ioctl.h b/device_mapper/misc/dm-ioctl.h
index cc2374c36..c00fa5b4f 100644
--- a/device_mapper/misc/dm-ioctl.h
+++ b/device_mapper/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
*/
reply other threads:[~2021-09-23 14:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210923145237.515B93858D34@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.