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

Fix internal snapshot_count when vgmerge with snapshots in source VG.

This commit is contained in:
Dave Wysochanski 2008-04-23 12:53:10 +00:00
parent 9ba7d6d08b
commit 7eb03d6c5c
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.36 -
=================================
Fix internal snapshot_count when vgmerge with snapshots in source VG.
Simply clvmd-openais by using non-async saLckResourceLock.
Check lv_count in vg_validate.
Fix internal LV counter when a snapshot is removed.

View File

@ -99,6 +99,7 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to,
}
vg_to->lv_count += vg_from->lv_count;
vg_to->snapshot_count += vg_from->snapshot_count;
vg_to->extent_count += vg_from->extent_count;
vg_to->free_count += vg_from->free_count;