summaryrefslogtreecommitdiffstats
path: root/libdm/misc
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-08-03 18:44:54 +0000
committerAlasdair Kergon <agk@redhat.com>2009-08-03 18:44:54 +0000
commit252239bdac59a4fcfd7b9279a1df2c965e9cf0fa (patch)
tree8e73ef569cc819e5b35c466766eea7ed3944c653 /libdm/misc
parentf9e17e36aa776503616c916334433389b7d6c80f (diff)
downloadlvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.tar.gz
lvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.tar.xz
lvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.zip
Add default udev rules.
Update dm-ioctl.h comments.
Diffstat (limited to 'libdm/misc')
-rw-r--r--libdm/misc/dm-ioctl.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index b6028f30..8222a75d 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -125,6 +125,16 @@ struct dm_ioctl {
uint32_t target_count; /* in/out */
int32_t open_count; /* out */
uint32_t flags; /* in/out */
+
+ /*
+ * event_nr holds either the event number (input and output) or the
+ * udev cookie value (input only).
+ * The DM_DEV_WAIT ioctl takes an event number as input.
+ * The DM_SUSPEND, DM_DEV_REMOVE and DM_DEV_RENAME ioctls
+ * use the field as a cookie to return in the DM_COOKIE
+ * variable with the uevents they issue.
+ * For output, the ioctls return the event number, not the cookie.
+ */
uint32_t event_nr; /* in/out */
uint32_t padding;
@@ -258,9 +268,9 @@ enum {
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4
-#define DM_VERSION_MINOR 14
+#define DM_VERSION_MINOR 15
#define DM_VERSION_PATCHLEVEL 0
-#define DM_VERSION_EXTRA "-ioctl (2008-04-23)"
+#define DM_VERSION_EXTRA "-ioctl (2009-04-01)"
/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */