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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user