[Bug 1616902] Re: libdevmapper logging not properly initialized
Liang Chen
liang.chen at canonical.com
Wed Sep 14 08:07:16 UTC 2016
OK. This has been fixed in multipat-tools upstream repo.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1616902
Title:
libdevmapper logging not properly initialized
Status in multipath-tools package in Ubuntu:
New
Bug description:
dm_init();
if (getuid() != 0) {
fprintf(stderr, "need to be root\n");
exit(1);
}
/* make sure we don't lock any path */
chdir("/");
umask(umask(077) | 022);
conf = alloc_config();
dm_init is called before allocating conf. But dm_init depends on conf->verbosity to initialize libdevmapper logging. In the current situation, the verbosity is always set to 0 because conf is 0.
extern void
dm_init(void) {
dm_log_init(&dm_write_log);
dm_log_init_verbose(conf ? conf->verbosity + 3 : 0);
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1616902/+subscriptions
More information about the foundations-bugs
mailing list