Skip to contentSkip to conversation

Programming interface

linux-lvm Christoph Pleger 2 participants 5 messages Aug 21, 2019 – Aug 23, 2019

lore
Share & tools
lore
#0 lore raw

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?

Regards
Christoph

#1 lore raw

Dne 21. 08. 19 v 9:58 Christoph Pleger napsal(a):

Quoted 3 lines

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

#2 lore raw

Hello,

Quoted 3 lines

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...

Surely you are not saying that the dbus interface will also disappear - because I am using that in another, less complicated application, though not directly, but with libblockdev.

Regards
Christoph

#3 lore raw

Dne 21. 08. 19 v 13:14 Christoph Pleger napsal(a):

Quoted 7 lines

Hello,

Quoted 3 lines

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...

Surely you are not saying that the dbus interface will also disappear - because I am using that in another, less complicated application, though not directly, but with libblockdev.

It's rather the issue of maintenance and keeping it 'up-to-date' with current lvm2 - since there are already quite a few missing 'parts' to be encoded into dbus...

Zdenek

#4 lore raw
In reply to Zdenek Kabelac

Hello,

Quoted 5 lines
Quoted 1 line

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?

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...

When, as a quick solution, I install a binary package containing one of the last lvm2app versions that was still included in the same lvm2 upstream version, will that still work, in combination with newer lvm programs and libraries?

Regards
Christoph