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

clenaup: use log_warn

Avoid logging error when function is not failing.
Technically can't really happen ATM anyway.
This commit is contained in:
Zdenek Kabelac 2017-12-04 13:34:10 +01:00
parent 2a01e3d4ca
commit 76322d3b3e

View File

@ -2705,7 +2705,7 @@ static int _load_node(struct dm_tree_node *dnode)
} }
if (!dm_task_no_open_count(dmt)) if (!dm_task_no_open_count(dmt))
log_error("Failed to disable open_count"); log_warn("WARNING: Failed to disable open_count.");
dm_list_iterate_items(seg, &dnode->props.segs) dm_list_iterate_items(seg, &dnode->props.segs)
if (!_emit_segment(dmt, dnode->info.major, dnode->info.minor, if (!_emit_segment(dmt, dnode->info.major, dnode->info.minor,
@ -2713,7 +2713,7 @@ static int _load_node(struct dm_tree_node *dnode)
goto_out; goto_out;
if (!dm_task_suppress_identical_reload(dmt)) if (!dm_task_suppress_identical_reload(dmt))
log_error("Failed to suppress reload of identical tables."); log_warn("WARNING: Failed to suppress reload of identical tables.");
if ((r = dm_task_run(dmt))) { if ((r = dm_task_run(dmt))) {
r = dm_task_get_info(dmt, &dnode->info); r = dm_task_get_info(dmt, &dnode->info);