You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unfinished compact files outside the disks folder are never cleaned up #157
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.
Activity