1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-02 04:22:02 +03:00

Add most all liblvm 'get' functions needed for anaconda.

Add the most straightforward 'get' functions required for anaconda.
These are the ones that return simple uint64_t values.
The other more complex ones involve the lv_attr bits.  These will
come in a separate patch series since each lv_attr bit will be returned
in a separate API instred of returning the string and requiring the
user to parse it.


Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski
2009-07-26 13:06:59 +00:00
parent 8b3755a679
commit 83f25cd121
5 changed files with 67 additions and 3 deletions

View File

@ -38,3 +38,7 @@ char *lvm_pv_get_name(const pv_t *pv)
return name;
}
uint64_t lvm_pv_get_mda_count(const pv_t *pv)
{
return (uint64_t) pv_mda_count(pv);
}