[PATCH 07/21] dm: Add definitions for ioctl commands not implemented initially
Eugene Syromyatnikov
evgsyr at gmail.com
Sun Oct 9 13:29:55 UTC 2016
dm.c [!DM_LIST_VERSIONS] (DM_LIST_VERSIONS): New definition.
[!DM_TARGET_MSG] (DM_TARGET_MSG): Likewise.
[!DM_DEV_SET_GEOMETRY] (DM_DEV_SET_GEOMETRY): Likewise.
---
dm.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dm.c b/dm.c
index 79bb7c7..66b615d 100644
--- a/dm.c
+++ b/dm.c
@@ -7,6 +7,19 @@
# if DM_VERSION_MAJOR == 4
+/* Definitions for command which have been added later */
+
+# ifndef DM_LIST_VERSIONS
+# define DM_LIST_VERSIONS _IOWR(DM_IOCTL, 0xd, struct dm_ioctl)
+# endif
+# ifndef DM_TARGET_MSG
+# define DM_TARGET_MSG _IOWR(DM_IOCTL, 0xe, struct dm_ioctl)
+# endif
+# ifndef DM_DEV_SET_GEOMETRY
+# define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, 0xf, struct dm_ioctl)
+# endif
+
+
static void
dm_decode_device(const unsigned int code, const struct dm_ioctl *ioc)
{
--
1.7.10.4
More information about the Strace-devel
mailing list