Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`timeshift --delete` never finishes with btrfs simple quotas (quota rescan retried forever)

Abierto
#575 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
50/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

  1. btrfs root, timeshift in btrfs mode
  2. btrfs quota enable --simple /
  3. Create a snapshot, then timeshift --delete --snapshot <name>
  4. It hangs; the log repeats Still rescanning quotas... ERROR: quota rescan failed: Invalid argument, and the kernel logs qgroup rescan init failed, running in simple mode once 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.

Lenguaje dominante
Vala
Estrellas
4.3k
Forks
159
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de linuxmint/timeshift

Todos los issues de linuxmint/timeshift

Issues similares

Más issues de Operating Systems

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.