mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Stop more gracefully when in test mode.
This commit is contained in:
parent
a3f950d56f
commit
098102afc0
@ -144,6 +144,13 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name,
|
|||||||
return ECMD_FAILED;
|
return ECMD_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FIXME Cache the label format change so we don't have to skip this */
|
||||||
|
if (test_mode()) {
|
||||||
|
log_verbose("Test mode: Skipping metadata writing for VG %s in"
|
||||||
|
" format %s", vg_name, cmd->fmt->name);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
log_verbose("Writing metadata for VG %s using format %s", vg_name,
|
log_verbose("Writing metadata for VG %s using format %s", vg_name,
|
||||||
cmd->fmt->name);
|
cmd->fmt->name);
|
||||||
if (!backup_restore_vg(cmd, vg)) {
|
if (!backup_restore_vg(cmd, vg)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user