mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
Remove unnecessary \n's from log_error in liblvm.
This commit is contained in:
parent
5f16e04b77
commit
df621aa30b
@ -133,13 +133,13 @@ int lvm_lv_activate(lv_t *lv)
|
||||
|
||||
/* FIXME: handle pvmove stuff later */
|
||||
if (lv->status & LOCKED) {
|
||||
log_error("Unable to activate locked LV\n");
|
||||
log_error("Unable to activate locked LV");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* FIXME: handle lvconvert stuff later */
|
||||
if (lv->status & CONVERTING) {
|
||||
log_error("Unable to activate LV with in-progress lvconvert\n");
|
||||
log_error("Unable to activate LV with in-progress lvconvert");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -147,14 +147,14 @@ int lvm_lv_activate(lv_t *lv)
|
||||
log_verbose("Activating logical volume \"%s\" "
|
||||
"exclusively", lv->name);
|
||||
if (!activate_lv_excl(lv->vg->cmd, lv)) {
|
||||
log_error("Activate exclusive failed.\n");
|
||||
log_error("Activate exclusive failed.");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
log_verbose("Activating logical volume \"%s\"",
|
||||
lv->name);
|
||||
if (!activate_lv(lv->vg->cmd, lv)) {
|
||||
log_error("Activate failed.\n");
|
||||
log_error("Activate failed.");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -168,7 +168,7 @@ int lvm_lv_deactivate(lv_t *lv)
|
||||
|
||||
log_verbose("Deactivating logical volume \"%s\"", lv->name);
|
||||
if (!deactivate_lv(lv->vg->cmd, lv)) {
|
||||
log_error("Deactivate failed.\n");
|
||||
log_error("Deactivate failed.");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@ -177,6 +177,6 @@ int lvm_lv_deactivate(lv_t *lv)
|
||||
int lvm_lv_resize(const lv_t *lv, uint64_t new_size)
|
||||
{
|
||||
/* FIXME: add lv resize code here */
|
||||
log_error("NOT IMPLEMENTED YET\n");
|
||||
log_error("NOT IMPLEMENTED YET");
|
||||
return -1;
|
||||
}
|
||||
|
@ -46,6 +46,6 @@ uint64_t lvm_pv_get_mda_count(const pv_t *pv)
|
||||
int lvm_pv_resize(const pv_t *pv, uint64_t new_size)
|
||||
{
|
||||
/* FIXME: add pv resize code here */
|
||||
log_error("NOT IMPLEMENTED YET\n");
|
||||
log_error("NOT IMPLEMENTED YET");
|
||||
return -1;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ int lvm_vg_extend(vg_t *vg, const char *device)
|
||||
/* If device not initialized, pvcreate it */
|
||||
if (!pv_by_path(vg->cmd, device) &&
|
||||
(!pvcreate_single(vg->cmd, device, NULL))) {
|
||||
log_error("Unable to initialize device for LVM use\n");
|
||||
log_error("Unable to initialize device for LVM use");
|
||||
unlock_vg(vg->cmd, VG_ORPHANS);
|
||||
return -1;
|
||||
}
|
||||
@ -97,7 +97,7 @@ int lvm_vg_write(vg_t *vg)
|
||||
|
||||
if (dm_list_empty(&vg->pvs)) {
|
||||
log_error("Volume group %s does not contain any "
|
||||
"physical volumes.\n", vg->name);
|
||||
"physical volumes.", vg->name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ struct dm_list *lvm_vg_list_pvs(vg_t *vg)
|
||||
return NULL;
|
||||
|
||||
if (!(list = dm_pool_zalloc(vg->vgmem, sizeof(*list)))) {
|
||||
log_errno(ENOMEM, "Memory allocation fail for dm_list.\n");
|
||||
log_errno(ENOMEM, "Memory allocation fail for dm_list.");
|
||||
return NULL;
|
||||
}
|
||||
dm_list_init(list);
|
||||
@ -187,7 +187,7 @@ struct dm_list *lvm_vg_list_pvs(vg_t *vg)
|
||||
dm_list_iterate_items(pvl, &vg->pvs) {
|
||||
if (!(pvs = dm_pool_zalloc(vg->vgmem, sizeof(*pvs)))) {
|
||||
log_errno(ENOMEM,
|
||||
"Memory allocation fail for lvm_pv_list.\n");
|
||||
"Memory allocation fail for lvm_pv_list.");
|
||||
return NULL;
|
||||
}
|
||||
pvs->pv = pvl->pv;
|
||||
@ -206,7 +206,7 @@ struct dm_list *lvm_vg_list_lvs(vg_t *vg)
|
||||
return NULL;
|
||||
|
||||
if (!(list = dm_pool_zalloc(vg->vgmem, sizeof(*list)))) {
|
||||
log_errno(ENOMEM, "Memory allocation fail for dm_list.\n");
|
||||
log_errno(ENOMEM, "Memory allocation fail for dm_list.");
|
||||
return NULL;
|
||||
}
|
||||
dm_list_init(list);
|
||||
@ -214,7 +214,7 @@ struct dm_list *lvm_vg_list_lvs(vg_t *vg)
|
||||
dm_list_iterate_items(lvl, &vg->lvs) {
|
||||
if (!(lvs = dm_pool_zalloc(vg->vgmem, sizeof(*lvs)))) {
|
||||
log_errno(ENOMEM,
|
||||
"Memory allocation fail for lvm_lv_list.\n");
|
||||
"Memory allocation fail for lvm_lv_list.");
|
||||
return NULL;
|
||||
}
|
||||
lvs->lv = lvl->lv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user