]> sourceware.org Git - lvm2.git/commit
Cleanup fid finalization code in free_vg and allow exactly the same fid to be set...
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 1 Apr 2011 14:54:20 +0000 (14:54 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 1 Apr 2011 14:54:20 +0000 (14:54 +0000)
commit251265821f0080966ea2731a73ddcb4bff4a9965
treee5d62c361f42c3e47938b6a47a2d18fa12764cb1
parent64f51a3797087822f75ea6e2c9dd145439a6583c
Cleanup fid finalization code in free_vg and allow exactly the same fid to be set again for a PV/VG.

Actually, we can call vg_set_fid(vg, NULL) instead of calling
destroy_instance for all PV structs and a VG struct - it's the same
code we already have in the vg_set_fid.

Also, allow exactly the same fid to be set again for the same PV/VG
Before, this could end up with the fid destroyed because we destroyed
existing fid first and then we used the new one and we didn't care
whether existing one == new one by chance.
lib/metadata/metadata.c
This page took 0.031951 seconds and 5 git commands to generate.