All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Fix lv-seg relationship on layer removal
@ 2008-02-21 17:04 Jun'ichi Nomura
  2008-02-23  8:44 ` Jim Meyering
  0 siblings, 1 reply; 2+ messages in thread
From: Jun'ichi Nomura @ 2008-02-21 17:04 UTC (permalink / raw)
  To: lvm-devel

When a layer is removed, a linear-mapping segment of its parent
is discarded and segments of the layer are moved to the parent LV.

To discard the linear-mapping layer properly,
we need to call lv_empty() for the parent to release the layer.
Otherwise, the layer LV still has the discarded linear segment
in its segs_using_this_lv list.
(Though it might not have any visible effect because the layer
 is eventually removed.)

Thanks Milan Broz for finding this bug.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: empty-parent-before-layer-removal.patch
Type: text/x-patch
Size: 912 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20080221/146aa820/attachment.bin>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-23  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21 17:04 [PATCH 2/2] Fix lv-seg relationship on layer removal Jun'ichi Nomura
2008-02-23  8:44 ` Jim Meyering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.