How to find thin_id of a volume using libblockdev
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 22/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- infrastructure
Research direction
The entry points are bd_lvm_lvinfo and the BDLVMLVdata struct it returns, which currently lacks a thin_id field. Start by reading how bd_lvm_lvinfo collects LV data, then check whether LVM's reporting can supply thin_id the way lvs -o thin_id does. Done means a caller can read a thin volume's thin_id through the public API. The issue has no answer or decision from maintainers, so confirm the approach in the thread before writing code.
Written by the indexing model from the issue text.
Description
Sorry, did not know how to reach you all.
I wanted to find the thin_id of a thin volume given its volume group and lv_name.
Using the cli it is as simple as lvs -o thin_id "vg"/"lv"
How to find it using libblockdev apis?
Calling bd_lvm_lvinfo does give out BDLVMLVdata.
But "BDLVMLVdata" does not have the thin_id info.
Thanks.
- Dominant language
- C
- Stars
- 137
- Forks
- 64
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from storaged-project/libblockdev
-
fails to build with libnvme3 (nvme-cli 3.0)Possibly taken @tbzatek claimed this 42 days ago. Open
storaged-project/libblockdev#1211 · 4 comments · 1 assignee ·
-
RFE
Difficulty 3/5 1-2 days Newbie friendliness 35/100
storaged-project/libblockdev#1093 · 3 comments ·
-
Difficulty 4/5 Over a week Newbie friendliness 18/100
storaged-project/libblockdev#1067 ·
-
Difficulty 3/5 Half a day Newbie friendliness 40/100
storaged-project/libblockdev#1060 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 12/100
storaged-project/libblockdev#977 · 1 comment ·
All issues in storaged-project/libblockdev
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
HexaCluster/credcheck#86 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mongodb/winkerberos#175 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AOMediaCodec/SVT-AV1#3320 ·
-
difficulty: easy
Difficulty 2/5 1-3 hours Newbie friendliness 64/100