summaryrefslogtreecommitdiffstats
path: root/tools/dmsetup.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2010-04-28 13:37:36 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2010-04-28 13:37:36 +0000
commit942d6ef29ff0e8ae5f76ca50ed7570ae8f7c5a66 (patch)
treeeea63b49face763000a642e0fc1a19b0074939b8 /tools/dmsetup.c
parent8b7fc0da1105564a846d3820accafcb490a53ffe (diff)
downloadlvm2-942d6ef29ff0e8ae5f76ca50ed7570ae8f7c5a66.tar.gz
lvm2-942d6ef29ff0e8ae5f76ca50ed7570ae8f7c5a66.tar.xz
lvm2-942d6ef29ff0e8ae5f76ca50ed7570ae8f7c5a66.zip
Add support for new IMPORT{db} udev rule.
This rule appeared in udev v152 and it helps us to support spurious events where we didn't have any flags set (events originated in udevadm trigger or the watch rule). These flags are important to direct the rule application. Now, with the help of this rule, we can regenerate old udev db content. To implement this correctly, we need to flag all proper DM udev events with DM_UDEV_PRIMARY_SOURCE_FLAG. That happens automatically for all ioctls generating events originated in libdevmapper.
Diffstat (limited to 'tools/dmsetup.c')
-rw-r--r--tools/dmsetup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 0f02f3c0..85dd7fb1 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -842,7 +842,8 @@ static int _udevflags(int args, char **argv, void *data __attribute((unused)))
"DISABLE_OTHER_RULES",
"LOW_PRIORITY",
"DISABLE_LIBRARY_FALLBACK",
- 0, 0};
+ "PRIMARY_SOURCE",
+ 0};
if (!(cookie = _get_cookie_value(argv[1])))
return 0;