Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How to find thin_id of a volume using libblockdev

オープン
#702 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
137
フォーク
64
平均マージ
1日 5時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

storaged-project/libblockdev のほかの issue

storaged-project/libblockdev の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。