From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: DeCay <decayhonor@gmail.com>, linux-lvm@lists.linux.dev
Subject: Re: LVM2 headers
Date: Tue, 4 Mar 2025 15:25:24 +0100 [thread overview]
Message-ID: <0755fea5-22f3-4a90-aec7-07ddb88c2253@gmail.com> (raw)
In-Reply-To: <825942ec-5b4f-48aa-bac2-02198d2a2733@gmail.com>
Dne 04. 03. 25 v 9:29 DeCay napsal(a):
> Hello!
>
> I came across a rust library (https://crates.io/crates/lvm-sys) which depends
> on lvm2app.h. This header doesn't exist anymore, as far as I was able to find.
>
> What's the right way to interact with LVM2 programmatically at the moment ?
>
There is either DBus API or just simple good old fashioned 'exec(lvm)' of
lvm2 command.
We were unable to provide and maintain the C API - as there are simply too
many restriction which cannot be easily satisfied with any random binary.
So easiest is to simply run lvm2 command or if you are able to consume DBus
API - you can try to go this path - however than there are many limitations.
Regards
Zdenek
next prev parent reply other threads:[~2025-03-04 14:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 8:29 LVM2 headers DeCay
2025-03-04 14:25 ` Zdenek Kabelac [this message]
2025-03-04 17:13 ` DeCay
2025-03-04 23:48 ` Demi Marie Obenour
2025-03-06 10:36 ` Zdenek Kabelac
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=0755fea5-22f3-4a90-aec7-07ddb88c2253@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=decayhonor@gmail.com \
--cc=linux-lvm@lists.linux.dev \
/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).