linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
	Christoph Pleger <christoph.pleger@cs.uni-dortmund.de>
Subject: Re: [linux-lvm] Programming interface
Date: Wed, 21 Aug 2019 10:46:33 +0200	[thread overview]
Message-ID: <e730aa67-00da-4c9d-6e0b-4000dacdd15f@redhat.com> (raw)
In-Reply-To: <5c0bded03fb05d7320afa10e025b4061@cs.uni-dortmund.de>

Dne 21. 08. 19 v 9:58 Christoph Pleger napsal(a):
> Hello,
> 
> Some time ago, we wrote an application that uses the lvm2app interface to 
> manage volume groups and logical volumes. Of course, the application does not 
> work anymore, now that lvm2app has been skipped. So, is there anywhere 
> something like a guide how to rewrite code that used the lvm2app interface?

Hi

Unfortunatelly there is no API library anymore - we were simply not able to 
provide such interface - it's complex task and very low number of developers...

The 'new' idea was to use/provide 'DBus' API - however it's also not a lot of 
'traction' :( and it's also missing lot of features and design...

So I'd highly recommend to stick with a call standard lvm2 commands.

String interface is pretty good and easy to construct in all programming 
languages.

Note - lvs has pretty good formatting capabilities for easy parsing (even in 
i.e. BASH)

Regards


Zdenek

  reply	other threads:[~2019-08-21  8:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21  7:58 [linux-lvm] Programming interface Christoph Pleger
2019-08-21  8:46 ` Zdenek Kabelac [this message]
2019-08-21 11:14   ` Christoph Pleger
2019-08-21 12:08     ` Zdenek Kabelac
2019-08-23 13:20   ` Christoph Pleger

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=e730aa67-00da-4c9d-6e0b-4000dacdd15f@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=christoph.pleger@cs.uni-dortmund.de \
    --cc=linux-lvm@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).