From: Andy Grover <agrover@redhat.com>
To: lvm-devel@redhat.com
Subject: liblvm/python-lvm behavior
Date: Fri, 26 Oct 2012 13:40:43 -0700 [thread overview]
Message-ID: <508AF54B.9090302@redhat.com> (raw)
In-Reply-To: <5088566A.4080105@redhat.com>
On 10/24/2012 01:58 PM, Tony Asleson wrote:
> What should be done to make this all consistent? If we want to continue
> with the implicit lvm_vg_write in all python methods we need to change
> the signature of lvm_vg_create to require at least 1 device. Otherwise,
> we could remove all the implicit lvm_vg_write calls in the python
> bindings and expose it. This would then require python users to make
> explicit calls to lvm_vg_write to make the changes persistent as the C
> library currently requires.
Yes I think we should not expose vg_write to library users. The fact
that it is created as an in-memory struct that is then extended to
include its first pv and then written, doesn't need to be exposed since
skipping any of those steps is incorrect.
So I'd like to see lvm_vg_create take a single path to a vg as a
required parameter. I don't think we need to take multiple pv paths, we
can extend to them after lvm_vg_create returns easily enough.
Regards -- Andy
prev parent reply other threads:[~2012-10-26 20:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 20:58 liblvm/python-lvm behavior Tony Asleson
2012-10-26 20:40 ` Andy Grover [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=508AF54B.9090302@redhat.com \
--to=agrover@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.