`timeshift --delete` never finishes with btrfs simple quotas (quota rescan retried forever)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 50/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
The hang comes from the two btrfs quota rescan retry loops in src/Core/Subvolume.vala, the "Rescanning quotas" and "(post)" steps. Reproduce by enabling simple quotas with btrfs quota enable --simple /, then deleting a snapshot. Check whether /sys/fs/btrfs/<fsid>/qgroups/mode reports squota before rescanning. Done when the delete finishes under simple quotas and normal quota behaviour is unchanged.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
With btrfs simple quotas enabled (btrfs quota enable --simple /), deleting a snapshot never finishes. The subvolume itself is deleted fine, but then timeshift retries btrfs quota rescan once a second, forever. Simple quotas have no rescan, so the command always fails with Invalid argument.
For me it blocked a system upgrade: timeshift-autosnap deletes old snapshots from a pacman hook, and the upgrade hung until I killed timeshift.
To Reproduce
Steps derived from the code path and the real run below; not yet re-run on a clean system.
- btrfs root, timeshift in btrfs mode
btrfs quota enable --simple /- Create a snapshot, then
timeshift --delete --snapshot <name> - It hangs; the log repeats
Still rescanning quotas... ERROR: quota rescan failed: Invalid argument, and the kernel logsqgroup rescan init failed, running in simple modeonce a second.
Real run (delete log):
[10:31:22] Deleted subvolume: @ (Id:473)
[10:31:22] Waiting on btrfs to finish deleting...
[10:31:23] Rescanning quotas...
[10:31:23] Still rescanning quotas... ERROR: quota rescan failed: Invalid argument
... 580 identical lines ...
[10:41:04] Still rescanning quotas... ERROR: quota rescan failed: Invalid argument
Expected behavior
The delete finishes. Under simple quotas there is nothing to rescan.
Cause
src/Core/Subvolume.vala (unchanged on master at 26.09.0) loops while (btrfs quota rescan ... != 0) sleep(1000), twice ("Rescanning quotas" and "(post)"). It treats every failure as "rescan still running". Checking /sys/fs/btrfs/<fsid>/qgroups/mode for squota and skipping the rescans would fix it. Possibly related: #354. The GUI uses the same delete code, so it should hang the same way (not tried).
System
- Manjaro (rolling), kernel 6.18.49
- Desktop: XFCE, X11
- Timeshift 25.12.4, btrfs mode; btrfs-progs 7.1; timeshift-autosnap-manjaro 0.10.0
Disclosure: this was diagnosed and written up by an AI assistant (Claude) working on my machine. The log excerpt is from my system and the code reference is against current master, but I have not verified the analysis myself. Happy to provide more logs, and a PR if wanted.
- 主要言語
- Vala
- スター
- 4.3k
- フォーク
- 159
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/timeshift のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
-
timeshift --create hangs indefinitely at exit in infinite read() = 0 loop on aarch64 (Fedora 44 / Kernel 7.2.x)対応中かも @ygerlach が 6 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
linuxmint/timeshift の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/azurelinux#19417 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
hermit-os/kernel#2747 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
base-files: 82_config_generate: regenerate /etc/board.json if 0-bytes / truncated after power cutオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openwrt/openwrt#25940 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100