Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

btrfs plugin missing a check for minimum file system size for shrink

未關閉
#548 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
18/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
c

研究方向

The resize code under discussion is in src/plugins/btrfs.c, around lines 876-902. The fix would add a check that calls btrfs inspect-internal min-dev-size before shrinking. The issue says this depends on the upstream btrfs-progs bug in kdave/btrfs-progs#271, and multi-device resize (devid 1 assumed) is still undecided, so confirm both before starting.

由索引模型根據 Issue 內容生成。

描述

GNOME Disks lacks resize support for Btrfs. But libblockdev has it.
https://github.com/storaged-project/libblockdev/blob/master/src/plugins/btrfs.c#L876-L902

But it's missing a check for the minimum possible shrink size: 'btrfs inspect-internal min-dev-size'
And before it can, this btrfs-progs bug needs fixed.
https://github.com/kdave/btrfs-progs/issues/271

Also, maybe there should be a better interface for libblockdev to use?

Also, in the multiple device case, if a device is not specified for resize, devid 1 is assumed. That suggests (a) fully supporting multiple device resizes; (b) a way to inhibit/block resize if it's a multiple device btrfs. How to know if it's multiple device? #244 probably needs a solution before knowing whether the device can be mounted as well as how many devices.

主要語言
C
星號
137
分支
64
平均合併
1 天 5 小時
30 天內合併 PR
3

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

storaged-project/libblockdev 的其他 Issue

查看 storaged-project/libblockdev 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。