Re: How to get a list of all logical groups or volumes using dbus API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I think `object_manager.GetManagedObjects()` is one of supported ways (used by the test suite).

Thanks! I didn't try this one. It's still a bit of a hack, though. According to https://dbus.freedesktop.org/doc/dbus-api-design.html:

"The specification also defines the org.freedesktop.DBus.ObjectManager interface, which should be used whenever a service needs to expose a variable number of objects of the same class..."

The objects I get are not of the same class (Manager, LV, PV). I still have to "pattern match", only on a higher level ("instance/type match").

But it's a way to go.


_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux