summaryrefslogtreecommitdiffstats
path: root/libdm/misc
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-11-06 00:43:08 +0000
committerAlasdair Kergon <agk@redhat.com>2009-11-06 00:43:08 +0000
commit9abf5e70be07b147c902e149521cf33cb76de78a (patch)
tree6da2ff2d8f151702d950e56ec0d5ccfd588c0131 /libdm/misc
parent6ddadf4023c7c8dfcdbbb64b47fdc382a9cf2b60 (diff)
downloadlvm2-9abf5e70be07b147c902e149521cf33cb76de78a.tar.gz
lvm2-9abf5e70be07b147c902e149521cf33cb76de78a.tar.xz
lvm2-9abf5e70be07b147c902e149521cf33cb76de78a.zip
Add support for querying a device's inactive table.
Currently this data is invisible to userspace. Requires dm >= 4.16 (likely to be in linux 2.6.33).
Diffstat (limited to 'libdm/misc')
-rw-r--r--libdm/misc/dm-ioctl.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index 8222a75d..77979842 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2001 - 2003 Sistina Software (UK) Limited.
- * Copyright (C) 2004 - 2005 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004 - 2009 Red Hat, Inc. All rights reserved.
*
* This file is released under the LGPL.
*/
@@ -268,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 15
+#define DM_VERSION_MINOR 16
#define DM_VERSION_PATCHLEVEL 0
-#define DM_VERSION_EXTRA "-ioctl (2009-04-01)"
+#define DM_VERSION_EXTRA "-ioctl (2009-11-05)"
/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */
@@ -311,4 +311,11 @@ enum {
*/
#define DM_NOFLUSH_FLAG (1 << 11) /* In */
+/*
+ * If set, any table information returned will relate to the inactive
+ * table instead of the live one. Always check DM_INACTIVE_PRESENT_FLAG
+ * is set before using the data returned.
+ */
+#define DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12) /* In */
+
#endif /* _LINUX_DM_IOCTL_H */