LVM2/daemons/lvmetad lvmetad-core.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-03-23 10:34:51
Modified files:
daemons/lvmetad: lvmetad-core.c
Log message:
Add fixmes
There is missing some proper reaction when update fails ?
daemons/lvmetad/lvmetad-core.c +3 -1
@@ -675,6 +675,7 @@assert (oldname);if (update_pvids) +/* FIXME: What should happen when update fails */ update_pvid_to_vgid (s, old,"#orphan" ,0 );/* need to update what we have since we found a newer version */ dm_hash_remove (s->vgid_to_metadata, vgid);
@@ -804,7 +805,8 @@unlock_vgid_to_metadata (s);if (retval) -update_pvid_to_vgid (s, cft, vgid,1 ); +/* FIXME: What should happen when update fails */ + retval =update_pvid_to_vgid (s, cft, vgid,1 );unlock_pvid_to_vgid (s); out: