]> sourceware.org Git - lvm2.git/commit
toolcontext: check dm version lazily for udev_fallback setting
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 13 May 2013 09:46:24 +0000 (11:46 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Mon, 13 May 2013 09:53:53 +0000 (11:53 +0200)
commit44071331138a7ca3a7d775d8a091933404ee7509
tree8dcb1ebd1685623c8871db8e4597db9f5ddc6b6e
parent3d0cb0611e5e68fc4d865102f8339552a907ff4b
toolcontext: check dm version lazily for udev_fallback setting

Setting the cmd->default_settings.udev_fallback also requires DM
driver version check. However, this caused useless mapper/control
access with ioctl if not needed actually. For example if we're not
using activation code, we don't need to know the udev_fallback as
there's no node and symlink processing.

For example, this premature mapper/control access caused problems
when using lvm2app even when no activation happens - there are
situations in which we don't need to use mapper/control, but still
need some of the lvm2app functionality. This is also the case for
lvm2-activation systemd generator which just needs to look at the
lvm2 configuration, but it shouldn't touch mapper/control.
WHATS_NEW
lib/activate/dev_manager.c
lib/commands/toolcontext.c
This page took 0.051684 seconds and 5 git commands to generate.