1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Test result of _init_tags.

This commit is contained in:
Zdenek Kabelac 2012-02-27 10:05:35 +00:00
parent 8df2c89cd4
commit 3af1ebe31e
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.94 -
====================================
Check for errors in _init_tags() during config loading.
Always check result of _set_vg_name() in lvcreate.
Drop unused call to uname() during clvmd initialization.
Test allocation result in sysfs filter creation.

View File

@ -532,9 +532,10 @@ static int _load_config_file(struct cmd_context *cmd, const char *tag)
dm_list_add(&cmd->config_files, &cfl->list);
out:
if (*tag)
_init_tags(cmd, cfl->cft);
else
if (*tag) {
if (!_init_tags(cmd, cfl->cft))
return_0;
} else
/* Use temporary copy of lvm.conf while loading other files */
cmd->cft = cfl->cft;