mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
A download writes its volume under its final name, so the volume was offered while half written. #685 kept a copy and an attach away from it; a new VM and a CD-ROM still took it. The VM create job now claims the volumes it is made from (a writable one exclusive, a template or a CD-ROM image shared), and adding a CD-ROM or inserting media holds the ISO's volume shared and reads the ISO again in that pool under the claim (iso_location, iso_path_in). Each is refused with the download named. A claim's key holds a pool's and a volume's names: longer than 255 characters on PostgreSQL it failed the request; Claim.resource is text. A pool that belongs to more than one backup target is not stopped while a backup to any of them runs (it took the first target only). The download read 1 MiB at a time: on a slow server a cancel and the progress waited for a whole MiB. It reads what has come (read1).
18 lines
378 B
Python
18 lines
378 B
Python
# Generated by Django 5.2.18 on 2026-11-20 13:45
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('operations', '0005_alert'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='claim',
|
|
name='resource',
|
|
field=models.TextField(db_index=True),
|
|
),
|
|
]
|