All of lore.kernel.org
 help / color / mirror / Atom feed
* master - python-lvm: Added lv method getOrigin
@ 2013-07-02 19:26 tasleson
  0 siblings, 0 replies; only message in thread
From: tasleson @ 2013-07-02 19:26 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f576b32203e4c1001764d26225fc6dffa97e4da0
Commit:        f576b32203e4c1001764d26225fc6dffa97e4da0
Parent:        a7f3dbf904f369338657785e845ebc8a6f479983
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Thu Apr 11 16:49:08 2013 -0400
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Tue Jul 2 14:24:34 2013 -0500

python-lvm: Added lv method getOrigin

Signed-off-by: Tony Asleson <tasleson@redhat.com>
---
 python/liblvm.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/python/liblvm.c b/python/liblvm.c
index 381af62..305fd50 100644
--- a/python/liblvm.c
+++ b/python/liblvm.c
@@ -1202,6 +1202,14 @@ liblvm_lvm_lv_get_attr(lvobject *self)
 }
 
 static PyObject *
+liblvm_lvm_lv_get_origin(lvobject *self)
+{
+	LV_VALID(self);
+
+	return Py_BuildValue("s", lvm_lv_get_origin(self->lv));
+}
+
+static PyObject *
 liblvm_lvm_lv_get_name(lvobject *self)
 {
 	LV_VALID(self);
@@ -1758,6 +1766,7 @@ static PyMethodDef liblvm_lv_methods[] = {
 	/* lv methods */
 	{ "getAttr",		(PyCFunction)liblvm_lvm_lv_get_attr, METH_NOARGS },
 	{ "getName",		(PyCFunction)liblvm_lvm_lv_get_name, METH_NOARGS },
+	{ "getOrigin",		(PyCFunction)liblvm_lvm_lv_get_origin, METH_NOARGS },
 	{ "getUuid",		(PyCFunction)liblvm_lvm_lv_get_uuid, METH_NOARGS },
 	{ "activate",		(PyCFunction)liblvm_lvm_lv_activate, METH_NOARGS },
 	{ "deactivate",		(PyCFunction)liblvm_lvm_lv_deactivate, METH_NOARGS },



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-02 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-02 19:26 master - python-lvm: Added lv method getOrigin tasleson

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.