All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
To: lvm-devel@redhat.com
Subject: [PATCH 2/2] Fix lv-seg relationship on layer removal
Date: Thu, 21 Feb 2008 12:04:19 -0500	[thread overview]
Message-ID: <47BDAF13.4040503@ce.jp.nec.com> (raw)

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>

             reply	other threads:[~2008-02-21 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 17:04 Jun'ichi Nomura [this message]
2008-02-23  8:44 ` [PATCH 2/2] Fix lv-seg relationship on layer removal Jim Meyering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47BDAF13.4040503@ce.jp.nec.com \
    --to=j-nomura@ce.jp.nec.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.