dev-dct-process-latest - libdm: fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5895657b5941f78969ab0c1a97cade5084c95166 Commit: 5895657b5941f78969ab0c1a97cade5084c95166 Parent: 25ae9383bbdec063257f67ac2dee8defd24aa2cf Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Sep 12 15:17:57 2014 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Sep 12 15:28:51 2014 +0200
libdm: fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
This is probably better approach than 3880ca5ecad1761bd13a190c58f8f85fdd7cd0e1.
If dm module is not loaded during dm_is_dm_major call, there are no lines for dm in /proc/devices, of course. Normally, dm_is_dm_major is called to check existing devices, hence if module is not loaded, we can expect there's no DM device present at the same time so we can directly return 0 here (meaning the major number being inspected is not dm device's one).
See also https://bugzilla.redhat.com/show_bug.cgi?id=1059711.
--- WHATS_NEW_DM | 1 + libdm/ioctl/libdm-iface.c | 52 +++++++++++++++++++++++++++++++++----------- 2 files changed, 40 insertions(+), 13 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.91 - ==================================== + Fix dm_is_dm_major to not issue error about missing /proc lines for dm module. Version 1.02.90 - 1st September 2014 ====================================
libdm/ioctl/libdm-iface.c +39 -13
109 lines not on this page · raw message