Skip to content

Unfinished compact files outside the disks folder are never cleaned up #157

Backlog

Description

@A21-devs

removeUnfinishedDisks(paths.disks) from #151 only looks in the disks folder. A compact writes its temporary file next to the disk it is compacting, ${cfg.diskPath}.compact.tmp, and diskPath comes from the VM's config file, which can point anywhere (src/shared/config.ts keeps whatever string is in there, and the README tells people they can point a VM at an existing qcow2).

For such a VM, a compact cut off by a quit leaves a file as big as the used part of its disk, in a folder nothing cleans, until the next compact of that VM replaces it.

Cheap fix: also check dirname(cfg.diskPath) for ${basename(cfg.diskPath)}.compact.tmp for every config at startup, and remove it if the VM isn't running. Scanning other folders wholesale is the thing to avoid; this looks only at the exact path the app would have written.

Found while reviewing #151.

Activity

  1. added
    enhancement
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions