1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Drop metadata cache before writing precommitted metadata instead of after.

This commit is contained in:
Alasdair Kergon 2008-05-08 18:06:58 +00:00
parent d3ccaf8ae5
commit d9c0105fef
2 changed files with 11 additions and 7 deletions

View File

@ -1,9 +1,13 @@
Version 2.02.37 -
Version 2.02.38 -
=================================
Don't touch /dev in vgrename if activation is disabled.
Check lv_count in vg_validate.
Add --prefixes to reporting tools for field name prefix output format.
Version 2.02.37 -
=================================
Drop metadata cache before writing precommitted metadata instead of after.
Don't touch /dev in vgrename if activation is disabled.
Version 2.02.36 - 29th April 2008
=================================
Fix fsadm.sh to work with older blockdev, blkid & readlink binaries.

View File

@ -1278,6 +1278,11 @@ int vg_write(struct volume_group *vg)
return 0;
}
if (!drop_cached_metadata(vg)) {
log_error("Unable to drop cached metadata for VG %s.", vg->name);
return 0;
}
vg->seqno++;
/* Write to each copy of the metadata area */
@ -1343,11 +1348,6 @@ int vg_commit(struct volume_group *vg)
return cache_updated;
}
if (!drop_cached_metadata(vg)) {
log_error("Unable to drop cached metadata for VG %s.", vg->name);
return 0;
}
/* Commit to each copy of the metadata area */
list_iterate_items(mda, &vg->fid->metadata_areas) {
failed = 0;