mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Fix Py_BuildValue for i386
see https://bugzilla.redhat.com/show_bug.cgi?id=881989 Signed-off-by: James Antill <james.antill@redhat.com> Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
parent
3835755259
commit
1ec6a59dcf
@ -564,7 +564,7 @@ liblvm_lvm_vg_get_seqno(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_seqno(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_seqno(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -572,7 +572,7 @@ liblvm_lvm_vg_get_size(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_size(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_size(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -580,7 +580,7 @@ liblvm_lvm_vg_get_free_size(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_free_size(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_free_size(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -588,7 +588,7 @@ liblvm_lvm_vg_get_extent_size(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_extent_size(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_extent_size(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -596,7 +596,7 @@ liblvm_lvm_vg_get_extent_count(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_extent_count(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_extent_count(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -604,7 +604,7 @@ liblvm_lvm_vg_get_free_extent_count(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_free_extent_count(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_free_extent_count(self->vg));
|
||||
}
|
||||
|
||||
/* Builds a python tuple ([string|number], bool) from a struct lvm_property_value */
|
||||
@ -755,7 +755,7 @@ liblvm_lvm_vg_get_pv_count(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_pv_count(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_pv_count(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -763,7 +763,7 @@ liblvm_lvm_vg_get_max_pv(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_max_pv(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_max_pv(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -771,7 +771,7 @@ liblvm_lvm_vg_get_max_lv(vgobject *self)
|
||||
{
|
||||
VG_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_vg_get_max_lv(self->vg));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_vg_get_max_lv(self->vg));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -1133,7 +1133,7 @@ liblvm_lvm_lv_get_size(lvobject *self)
|
||||
{
|
||||
LV_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_lv_get_size(self->lv));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_lv_get_size(self->lv));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -1344,7 +1344,7 @@ liblvm_lvm_pv_get_mda_count(pvobject *self)
|
||||
{
|
||||
PV_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_pv_get_mda_count(self->pv));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_pv_get_mda_count(self->pv));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -1367,7 +1367,7 @@ liblvm_lvm_pv_get_dev_size(pvobject *self)
|
||||
{
|
||||
PV_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_pv_get_dev_size(self->pv));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_pv_get_dev_size(self->pv));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -1375,7 +1375,7 @@ liblvm_lvm_pv_get_size(pvobject *self)
|
||||
{
|
||||
PV_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_pv_get_size(self->pv));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_pv_get_size(self->pv));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
@ -1383,7 +1383,7 @@ liblvm_lvm_pv_get_free(pvobject *self)
|
||||
{
|
||||
PV_VALID(self);
|
||||
|
||||
return Py_BuildValue("l", lvm_pv_get_free(self->pv));
|
||||
return Py_BuildValue("K", (unsigned long long)lvm_pv_get_free(self->pv));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
Loading…
Reference in New Issue
Block a user