]> sourceware.org Git - lvm2.git/commit
Fix snapshot segment import to not use duplicate segments & replace.
authorMilan Broz <mbroz@redhat.com>
Wed, 13 May 2009 21:21:58 +0000 (21:21 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 13 May 2009 21:21:58 +0000 (21:21 +0000)
commit4b13d5a8238574d9af53b9131456d1f03f8d627e
tree846c5659e0286f936b6c3e231ccb1b0edcd832f3
parent3a5d73beb06d0f9bf4b28862e3b661976656eaa1
Fix snapshot segment import to not use duplicate segments & replace.

The snapshot segment (snapshotX) is created twice
during the text metadata segment processing.

This can cause temporary violation of max_lv count.

Simplify the code, snapshot segment is properly initialized
in init_snapshot_seg function now and do not need to be replaced
by vg_add_snapshot call.

The vg_add_snapshot() is now usefull only for adding new
snapshot and it shares the same initialization function.

The snapshot name is always generated, name paramater can be
removed from function call.
WHATS_NEW
lib/format1/import-export.c
lib/format_text/import_vsn1.c
lib/metadata/metadata-exported.h
lib/metadata/snapshot_manip.c
lib/snapshot/snapshot.c
tools/lvconvert.c
tools/lvcreate.c
This page took 0.034629 seconds and 5 git commands to generate.