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

Improve backtrace reporting

Add <backtrace> so the function appears logged for the fail path.
This commit is contained in:
Zdenek Kabelac 2011-10-11 08:59:42 +00:00
parent 4007ac814f
commit de75bc6688
2 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.89 -
==================================
Improve backtrace reporting for some dev_manager_ functions.
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.

View File

@ -1941,7 +1941,10 @@ int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv,
if (!_tree_action(dm, lv, laopts, ACTIVATE))
return_0;
return _tree_action(dm, lv, laopts, CLEAN);
if (!_tree_action(dm, lv, laopts, CLEAN))
return_0;
return 1;
}
/* origin_only may only be set if we are resuming (not activating) an origin LV */
@ -1949,7 +1952,7 @@ int dev_manager_preload(struct dev_manager *dm, struct logical_volume *lv,
struct lv_activate_opts *laopts, int *flush_required)
{
if (!_tree_action(dm, lv, laopts, PRELOAD))
return 0;
return_0;
*flush_required = dm->flush_required;
@ -1959,11 +1962,11 @@ int dev_manager_preload(struct dev_manager *dm, struct logical_volume *lv,
int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv)
{
struct lv_activate_opts laopts = { 0 };
int r;
r = _tree_action(dm, lv, &laopts, DEACTIVATE);
if (!_tree_action(dm, lv, &laopts, DEACTIVATE))
return_0;
return r;
return 1;
}
int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv,
@ -1971,7 +1974,10 @@ int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv,
{
dm->flush_required = flush_required;
return _tree_action(dm, lv, laopts, lockfs ? SUSPEND_WITH_LOCKFS : SUSPEND);
if (!_tree_action(dm, lv, laopts, lockfs ? SUSPEND_WITH_LOCKFS : SUSPEND))
return_0;
return 1;
}
/*