mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Change message severity
Using log_warn to report missing symlinks as warning, since the command itself returns as successful, we should not produce log_error(). log_warn is better fit here.
This commit is contained in:
parent
409bf6e6d8
commit
4007ac814f
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Change message severity to log_warn when symlink creation fails.
|
||||
Add ability to convert mirror segtype to RAID1 segtype.
|
||||
Add ability to convert from linear to RAID1.
|
||||
Add ability to extend mirrors with '--nosync' option.
|
||||
|
@ -1886,7 +1886,7 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,
|
||||
if (!dm_tree_deactivate_children(root, dlid, ID_LEN + sizeof(UUID_PREFIX) - 1))
|
||||
goto_out;
|
||||
if (!_remove_lv_symlinks(dm, root))
|
||||
log_error("Failed to remove all device symlinks associated with %s.", lv->name);
|
||||
log_warn("Failed to remove all device symlinks associated with %s.", lv->name);
|
||||
break;
|
||||
case SUSPEND:
|
||||
dm_tree_skip_lockfs(root);
|
||||
@ -1913,10 +1913,8 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,
|
||||
if (action == ACTIVATE) {
|
||||
if (!dm_tree_activate_children(root, dlid, ID_LEN + sizeof(UUID_PREFIX) - 1))
|
||||
goto_out;
|
||||
if (!_create_lv_symlinks(dm, root)) {
|
||||
log_error("Failed to create symlinks for %s.", lv->name);
|
||||
goto out;
|
||||
}
|
||||
if (!_create_lv_symlinks(dm, root))
|
||||
log_warn("Failed to create symlinks for %s.", lv->name);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user