[linux-lvm] How to get a list of all logical groups or volumes using dbus API
mcsontos at redhat.com
Thu Jun 21 09:51:41 UTC 2018
On 06/21/2018 09:26 AM, Michael Lipp wrote:
> I searched, but I cannot find the "root hook". Using the Manager
> interface, I can lookup a LV if I have some id (LookUpByLvmId). But how
> can I achieve the same results as vgs/lvs using the dbus API? I *could*
> get the list of paths and pattern match them, but IMHO this would be a hack.
I think `object_manager.GetManagedObjects()` is one of supported ways
(used by the test suite).
Not sure there is simpler way.
> - Michael
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm