mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-12 07:33:16 +03:00
Missing check for inconsistent VG in pvmove.
This commit is contained in:
@@ -576,6 +576,17 @@ static int _poll_pvmove_vgs(struct cmd_context *cmd, const char *vgname,
|
||||
struct physical_volume *pv;
|
||||
int finished;
|
||||
|
||||
if (!vg) {
|
||||
log_error("Couldn't read volume group %s", vgname);
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
if (!consistent) {
|
||||
log_error("Volume Group %s inconsistent - skipping", vgname);
|
||||
/* FIXME Should we silently recover it here or not? */
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
if (vg->status & EXPORTED_VG) {
|
||||
log_error("Volume group \"%s\" is exported", vg->name);
|
||||
return ECMD_FAILED;
|
||||
|
Reference in New Issue
Block a user