From: Petr Rockai <prockai@redhat.com>
To: lvm-devel@redhat.com
Subject: [Red Hat - Possible Forgery] Re: [PATCH] Pass parsed metadata to activation code.
Date: Wed, 20 Mar 2013 12:11:44 +0100 [thread overview]
Message-ID: <87vc8mba1b.fsf@mornfall.net> (raw)
In-Reply-To: <51497C6A.80500@redhat.com> (Zdenek Kabelac's message of "Wed, 20 Mar 2013 10:07:54 +0100")
Hi there,
Zdenek Kabelac <zkabelac@redhat.com> writes:
> I've went into very quick overview - would it be possible to split some
> patches into 'rename/clean old code' 'add new functionality' ?
I don't see any places where "cleaning old code" is being done. Can you
point out which bits you mean?
> Also - how does the new solution 'scales' in terms of having thousands of LVs
> in the metadata - I've noticed couple new linear scans 'dm_list_iterate()'. The
> trick with lv_ondisk() code is not yet very clean to me - will need to find
> some time for this - it seems to be adding new complexity in the code.
lv_ondisk is trivial, it just finds the same LV you are using in the
"ondisk" version of its metadata; the "ondisk" version of VG is just
that: the struct volume_group that came pristine from vg_read, or after
you vg_commit, the version that has been committed.
For iteration, yes, it does a linear scan, but not a "new" one. You
either call lv_ondisk OR you call lv_from_lvid. Both do a single linear
scan through the list of LVs. In fact, for suspend, the old code does 2
such scans while the new code only does one. So the net result is quite
the opposite, there's one iteration less and no new ones.
Petr
--
id' Ash = Ash; id' Dust = Dust; id' _ = undefined
prev parent reply other threads:[~2013-03-20 11:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 23:39 [PATCH] Pass parsed metadata to activation code Petr Rockai
2013-03-20 9:07 ` Zdenek Kabelac
2013-03-20 11:11 ` Petr Rockai [this message]
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=87vc8mba1b.fsf@mornfall.net \
--to=prockai@redhat.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.