1
0
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:
Alasdair Kergon 2005-01-17 18:24:28 +00:00
parent 5c7fc7c4f7
commit 73543ee70d
4 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
2.00.34-cvs (2005-01-07)
2.01.00-cvs (2005-01-17)

View File

@ -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

View File

@ -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()) {

View File

@ -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)) {