mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-30 05:49:28 +03:00
python-lvm: whitespace in python/liblvm.c.
Sorry, it bugged me. Should be perfect now. Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
@ -29,31 +29,31 @@ static lvm_t libh;
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
vg_t vg; /* vg handle */
|
vg_t vg; /* vg handle */
|
||||||
} vgobject;
|
} vgobject;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
lv_t lv; /* lv handle */
|
lv_t lv; /* lv handle */
|
||||||
vgobject *parent_vgobj;
|
vgobject *parent_vgobj;
|
||||||
} lvobject;
|
} lvobject;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
pv_t pv; /* pv handle */
|
pv_t pv; /* pv handle */
|
||||||
vgobject *parent_vgobj;
|
vgobject *parent_vgobj;
|
||||||
} pvobject;
|
} pvobject;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
lvseg_t lv_seg; /* lv segment handle */
|
lvseg_t lv_seg; /* lv segment handle */
|
||||||
lvobject *parent_lvobj;
|
lvobject *parent_lvobj;
|
||||||
} lvsegobject;
|
} lvsegobject;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
pvseg_t pv_seg; /* pv segment handle */
|
pvseg_t pv_seg; /* pv segment handle */
|
||||||
pvobject *parent_pvobj;
|
pvobject *parent_pvobj;
|
||||||
} pvsegobject;
|
} pvsegobject;
|
||||||
|
|
||||||
static PyTypeObject LibLVMvgType;
|
static PyTypeObject LibLVMvgType;
|
||||||
@ -643,7 +643,7 @@ get_property(struct lvm_property_value *prop)
|
|||||||
/* This will return a tuple of (value, bool) with the value being a string or
|
/* This will return a tuple of (value, bool) with the value being a string or
|
||||||
integer and bool indicating if property is settable */
|
integer and bool indicating if property is settable */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_vg_get_property(vgobject *self, PyObject *args)
|
liblvm_lvm_vg_get_property(vgobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
struct lvm_property_value prop_value;
|
struct lvm_property_value prop_value;
|
||||||
@ -658,7 +658,7 @@ liblvm_lvm_vg_get_property(vgobject *self, PyObject *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_vg_set_property(vgobject *self, PyObject *args)
|
liblvm_lvm_vg_set_property(vgobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
const char *property_name = NULL;
|
const char *property_name = NULL;
|
||||||
PyObject *variant_type_arg = NULL;
|
PyObject *variant_type_arg = NULL;
|
||||||
@ -1277,8 +1277,8 @@ liblvm_lvm_lv_resize(lvobject *self, PyObject *args)
|
|||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_lv_list_lvsegs(lvobject *self)
|
liblvm_lvm_lv_list_lvsegs(lvobject *self)
|
||||||
{
|
{
|
||||||
struct dm_list *lvsegs;
|
struct dm_list *lvsegs;
|
||||||
lvseg_list_t *lvsegl;
|
lvseg_list_t *lvsegl;
|
||||||
PyObject * pytuple;
|
PyObject * pytuple;
|
||||||
lvsegobject *lvsegobj;
|
lvsegobject *lvsegobj;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -1377,7 +1377,7 @@ liblvm_lvm_pv_get_mda_count(pvobject *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_pv_get_property(pvobject *self, PyObject *args)
|
liblvm_lvm_pv_get_property(pvobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
struct lvm_property_value prop_value;
|
struct lvm_property_value prop_value;
|
||||||
@ -1491,7 +1491,7 @@ liblvm_lvseg_dealloc(lvsegobject *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_lvseg_get_property(lvsegobject *self, PyObject *args)
|
liblvm_lvm_lvseg_get_property(lvsegobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
struct lvm_property_value prop_value;
|
struct lvm_property_value prop_value;
|
||||||
@ -1521,7 +1521,7 @@ liblvm_pvseg_dealloc(pvsegobject *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
liblvm_lvm_pvseg_get_property(pvsegobject *self, PyObject *args)
|
liblvm_lvm_pvseg_get_property(pvsegobject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
struct lvm_property_value prop_value;
|
struct lvm_property_value prop_value;
|
||||||
@ -1553,7 +1553,7 @@ static PyMethodDef Liblvm_methods[] = {
|
|||||||
{ "percentToFloat", (PyCFunction)liblvm_lvm_percent_to_float, METH_VARARGS },
|
{ "percentToFloat", (PyCFunction)liblvm_lvm_percent_to_float, METH_VARARGS },
|
||||||
{ "vgNameFromPvid", (PyCFunction)liblvm_lvm_vgname_from_pvid, METH_VARARGS },
|
{ "vgNameFromPvid", (PyCFunction)liblvm_lvm_vgname_from_pvid, METH_VARARGS },
|
||||||
{ "vgNameFromDevice", (PyCFunction)liblvm_lvm_vgname_from_device, METH_VARARGS },
|
{ "vgNameFromDevice", (PyCFunction)liblvm_lvm_vgname_from_device, METH_VARARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyMethodDef liblvm_vg_methods[] = {
|
static PyMethodDef liblvm_vg_methods[] = {
|
||||||
@ -1589,7 +1589,7 @@ static PyMethodDef liblvm_vg_methods[] = {
|
|||||||
{ "pvFromUuid", (PyCFunction)liblvm_lvm_pv_from_uuid, METH_VARARGS },
|
{ "pvFromUuid", (PyCFunction)liblvm_lvm_pv_from_uuid, METH_VARARGS },
|
||||||
{ "getTags", (PyCFunction)liblvm_lvm_vg_get_tags, METH_NOARGS },
|
{ "getTags", (PyCFunction)liblvm_lvm_vg_get_tags, METH_NOARGS },
|
||||||
{ "createLvLinear", (PyCFunction)liblvm_lvm_vg_create_lv_linear, METH_VARARGS },
|
{ "createLvLinear", (PyCFunction)liblvm_lvm_vg_create_lv_linear, METH_VARARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyMethodDef liblvm_lv_methods[] = {
|
static PyMethodDef liblvm_lv_methods[] = {
|
||||||
@ -1610,7 +1610,7 @@ static PyMethodDef liblvm_lv_methods[] = {
|
|||||||
{ "resize", (PyCFunction)liblvm_lvm_lv_resize, METH_VARARGS },
|
{ "resize", (PyCFunction)liblvm_lvm_lv_resize, METH_VARARGS },
|
||||||
{ "listLVsegs", (PyCFunction)liblvm_lvm_lv_list_lvsegs, METH_NOARGS },
|
{ "listLVsegs", (PyCFunction)liblvm_lvm_lv_list_lvsegs, METH_NOARGS },
|
||||||
{ "snapshot", (PyCFunction)liblvm_lvm_lv_snapshot, METH_VARARGS },
|
{ "snapshot", (PyCFunction)liblvm_lvm_lv_snapshot, METH_VARARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyMethodDef liblvm_pv_methods[] = {
|
static PyMethodDef liblvm_pv_methods[] = {
|
||||||
@ -1624,17 +1624,17 @@ static PyMethodDef liblvm_pv_methods[] = {
|
|||||||
{ "getFree", (PyCFunction)liblvm_lvm_pv_get_free, METH_NOARGS },
|
{ "getFree", (PyCFunction)liblvm_lvm_pv_get_free, METH_NOARGS },
|
||||||
{ "resize", (PyCFunction)liblvm_lvm_pv_resize, METH_VARARGS },
|
{ "resize", (PyCFunction)liblvm_lvm_pv_resize, METH_VARARGS },
|
||||||
{ "listPVsegs", (PyCFunction)liblvm_lvm_pv_list_pvsegs, METH_NOARGS },
|
{ "listPVsegs", (PyCFunction)liblvm_lvm_pv_list_pvsegs, METH_NOARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyMethodDef liblvm_lvseg_methods[] = {
|
static PyMethodDef liblvm_lvseg_methods[] = {
|
||||||
{ "getProperty", (PyCFunction)liblvm_lvm_lvseg_get_property, METH_VARARGS },
|
{ "getProperty", (PyCFunction)liblvm_lvm_lvseg_get_property, METH_VARARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyMethodDef liblvm_pvseg_methods[] = {
|
static PyMethodDef liblvm_pvseg_methods[] = {
|
||||||
{ "getProperty", (PyCFunction)liblvm_lvm_pvseg_get_property, METH_VARARGS },
|
{ "getProperty", (PyCFunction)liblvm_lvm_pvseg_get_property, METH_VARARGS },
|
||||||
{ NULL, NULL} /* sentinel */
|
{ NULL, NULL } /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyTypeObject LibLVMvgType = {
|
static PyTypeObject LibLVMvgType = {
|
||||||
|
Reference in New Issue
Block a user