1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/storages
catborise 7e70595fd2 fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second
A download into a pool listed its volume while it was written. The page
let a superuser copy it (the copy got a half-written file, live), attach
it to a VM, or stop the pool under it. Now:

- the copy job claims its source volume shared, and the worker refuses
  a copy whose name the source's format changed before the claim;
- attaching an existing volume holds it exclusive from its first read,
  so neither a download nor a copy is under way, and its format is read
  after the download ended;
- stopping or deleting a pool (page and API) holds the pool exclusive,
  and its backup target's claim if it is one; restores claim the pools
  they write into shared.

Each is refused with the job in the way named, as a volume delete
already was.

The download recorded its progress every 16 MiB, so a slow server's
bar stayed empty for a long time; it records it each second, with the
cancel check. The worker checks the name is still free before it
starts. A snapshot name or tag typed in the VM list's bulk form keeps
the list from reloading, as a chosen VM did.
2026-11-20 15:38:06 +03:00
..
api fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
migrations refactor: the API's serializers and the new VM form no longer need models 2026-11-06 13:46:27 +03:00
templates feat(storages): a pool's volume downloaded from a URL 2026-11-20 14:50:04 +03:00
tests fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
__init__.py build new tree 2015-02-27 11:28:22 +02:00
forms.py fix(storages): a pool is not made of a system directory or of another pool's 2026-11-13 10:41:03 +03:00
jobs.py fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00
upload.py refactor(vrtManager): remove the wvmConnect.close() that did nothing 2026-11-08 12:19:29 +03:00
views.py fix: a volume a job writes is not copied, attached or its pool stopped; download progress each second 2026-11-20 15:38:06 +03:00