linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Michael Lipp <mnl@mnl.de>
To: Marian Csontos <mcsontos@redhat.com>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to get a list of all logical groups or volumes using dbus API
Date: Thu, 21 Jun 2018 17:03:36 +0200	[thread overview]
Message-ID: <f0c8e9bc-1eca-337e-479d-cfcb9cf53c51@mnl.de> (raw)
In-Reply-To: <a59d907d-1092-804a-20a0-8227b2aebc10@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]


> 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
<http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-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.



[-- Attachment #2: Type: text/html, Size: 1395 bytes --]

      reply	other threads:[~2018-06-21 15:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21  7:26 [linux-lvm] How to get a list of all logical groups or volumes using dbus API Michael Lipp
2018-06-21  9:51 ` Marian Csontos
2018-06-21 15:03   ` Michael Lipp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0c8e9bc-1eca-337e-479d-cfcb9cf53c51@mnl.de \
    --to=mnl@mnl.de \
    --cc=linux-lvm@redhat.com \
    --cc=mcsontos@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).