mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Refactor a couple log_error() statements in prep for larger log_error() patch.
Part of twoerner's log_error() patches. Signed-off-by: Thomas Woerner <twoerner@redhat.com> Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
62406f5408
commit
0f66b7086b
@ -64,9 +64,8 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv,
|
||||
}
|
||||
|
||||
if (!(pvl = find_pv_in_vg(vg, pv_name))) {
|
||||
log_error
|
||||
("Unable to find \"%s\" in volume group \"%s\"",
|
||||
pv_name, vg->name);
|
||||
log_error("Unable to find \"%s\" in volume group \"%s\"",
|
||||
pv_name, vg->name);
|
||||
goto out;
|
||||
}
|
||||
if (tagarg && !(vg->fid->fmt->features & FMT_TAGS)) {
|
||||
|
@ -400,15 +400,13 @@ static int _set_up_pvmove(struct cmd_context *cmd, const char *pv_name,
|
||||
log_error("Ignoring remaining command line arguments");
|
||||
|
||||
if (!(lvs_changed = lvs_using_lv(cmd, vg, lv_mirr))) {
|
||||
log_error
|
||||
("ABORTING: Failed to generate list of moving LVs");
|
||||
log_error("ABORTING: Failed to generate list of moving LVs");
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* Ensure mirror LV is active */
|
||||
if (!_activate_lv(cmd, lv_mirr, exclusive)) {
|
||||
log_error
|
||||
("ABORTING: Temporary mirror activation failed.");
|
||||
log_error("ABORTING: Temporary mirror activation failed.");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user