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

cleanup: use display_name

This commit is contained in:
Zdenek Kabelac 2016-06-01 17:40:26 +02:00
parent a5d65b4a51
commit 21cefd3f07
2 changed files with 4 additions and 5 deletions

View File

@ -369,18 +369,17 @@ static int _extend_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg,
struct lvresize_params lp = {
.lv_name = vg->sanlock_lv->name,
.sign = SIGN_NONE,
.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE),
.percent = PERCENT_NONE,
.resize = LV_EXTEND,
.ac_force = 1,
.sizeargs = 1,
};
lp.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE);
if (!lv_resize_prepare(cmd, lv, &lp, &vg->pvs) ||
!lv_resize(cmd, lv, &lp, &vg->pvs)) {
log_error("Extend LV %s/%s to size %llu failed.",
vg->name, lv->name, (unsigned long long)lp.size);
log_error("Extend LV %s to size %s failed.",
display_lvname(lv), display_size(cmd, lp.size));
return 0;
}

View File

@ -5410,7 +5410,7 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
return 1;
bad:
if (inactive && !deactivate_lv(cmd, lock_lv))
log_error("Problem deactivating %s.", lock_lv->name);
log_error("Problem deactivating %s.", display_lvname(lock_lv));
return 0;
}