From: Stuart D Gathman <stuart@gathman.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Mapping lvol off to pvol off
Date: Wed, 18 Aug 2021 22:38:47 -0400 (EDT) [thread overview]
Message-ID: <e7809-62e7-a08f-12a1-f53f76a1d6f9@gathman.org> (raw)
In-Reply-To: <1414461064.880834.1629220653850@mail.yahoo.com>
On Tue, 17 Aug 2021, Chethan Seshadri wrote:
> Can someone help to covert an offset within an lvol to the corresponding
> pvol offset using...
>
> 1. lvm commands
> 2. lvmdbusd APIs
This utility does that:
https://github.com/sdgathman/lbatofile
See getlv() and getpvmap()
https://github.com/sdgathman/lbatofile/blob/master/lbatofile.py
Caveat, only tested with classic LVs. Dunno about thin stuff.
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
parent reply other threads:[~2021-08-19 3:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1414461064.880834.1629220653850@mail.yahoo.com>]
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=e7809-62e7-a08f-12a1-f53f76a1d6f9@gathman.org \
--to=stuart@gathman.org \
--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).