1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/activate
Milan Broz 52a5cd31c4 Mitigate some warnings if running as non-root user.
LVM doesn't behave correctly if running as non-root user,
there is warning when it detects it.

Despite this, it produces many error messages, saying nothing.
See https://bugzilla.redhat.com/show_bug.cgi?id=620571

This patch fixes two things:
1) Removes eror message from device_is_usable() which has no
information value anyway (real warning is printed inside it).

2) it fixes device-mapper initialization, if we support
core dm module autoload and device node is present, it should
fail early and not try recreate existing and correct node.
(non-root == permission denied here)

N.B. In future code should support user roles, some more
drastic checks in code are probably contraproductive now.
2011-03-18 12:17:57 +00:00
..
activate.c Const fixing 2011-02-18 14:47:28 +00:00
activate.h Const fixing 2011-02-18 14:47:28 +00:00
dev_manager.c Mitigate some warnings if running as non-root user. 2011-03-18 12:17:57 +00:00
dev_manager.h Remove check for lv is NULL 2010-11-30 22:28:06 +00:00
fs.c Critical section 2011-02-18 14:16:11 +00:00
fs.h Synchronize with udev for lv_info 2011-02-03 01:16:35 +00:00
targets.h Use UUIDs instead of names while processing event handlers. 2010-04-14 13:01:38 +00:00