`timeshift --delete` never finishes with btrfs simple quotas (quota rescan retried forever)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- operating-systems
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Vala
- Stelle
- 4.3k
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di linuxmint/timeshift
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
-
License parsing with GitHubAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
-
timeshift --create hangs indefinitely at exit in infinite read() = 0 loop on aarch64 (Fedora 44 / Kernel 7.2.x)Forse già presa @ygerlach l’ha presa 5 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
Tutte le issue di linuxmint/timeshift
Issue simili
-
System calls: getcwdApertagood first issue kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
JackFurton/who-would-build-a-kernel-in-java#208 ·
I maintainer di solito rispondono entro 1 giorno
-
libc
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
llvm/llvm-project#232380 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
aix bug build-fail
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
oss/0 pending team/windows-products
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
DataDog/datadog-agent#58197 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
omacom/omarchy-mac#728 ·
I maintainer di solito rispondono entro 1 giorno