mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix vgscan metadata auto-correction.
This commit is contained in:
parent
5c7fc7c4f7
commit
73543ee70d
@ -1,5 +1,6 @@
|
||||
Version 2.00.34 -
|
||||
Version 2.01.00 -
|
||||
==================================
|
||||
Fix vgscan metadata auto-correction.
|
||||
Only ask libdevmapper for open_count when we need it.
|
||||
Adjust RHEL4 clvmd init script priority.
|
||||
Enable building of CMAN & GULM versions of clvmd into a single binary
|
||||
|
@ -711,6 +711,11 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vgname,
|
||||
log_error("Automatic metadata correction failed");
|
||||
return NULL;
|
||||
}
|
||||
if (!vg_commit(correct_vg)) {
|
||||
log_error("Automatic metadata correction commit "
|
||||
"failed");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if ((correct_vg->status & PVMOVE) && !pvmove_mode()) {
|
||||
|
@ -56,7 +56,7 @@ int vgscan(struct cmd_context *cmd, int argc, char **argv)
|
||||
|
||||
log_print("Reading all physical volumes. This may take a while...");
|
||||
|
||||
maxret = process_each_vg(cmd, argc, argv, LCK_VG_READ, 1, NULL,
|
||||
maxret = process_each_vg(cmd, argc, argv, LCK_VG_READ, 0, NULL,
|
||||
&vgscan_single);
|
||||
|
||||
if (arg_count(cmd, mknodes_ARG)) {
|
||||
|
Loading…
Reference in New Issue
Block a user