[pve-devel] update disk config, always rescan all the storage, can we avoid that ?
Dietmar Maurer
dietmar at proxmox.com
Mon Jun 3 13:25:04 CEST 2013
> >>Yes. But otherwise $settings does not contain drives, so calling
> >>creat_disks shoukd have no effect?
>
> $settings in never empty, as we update the full disk config.
>
> example, to update bandwith limit:
>
> qm update --virtio0 local:1/vm-1-disk-1,cache=none,size=10G,mbps_rd=10
ah, got it now - test cases really helps ;-)
but I have no real idea how to implement that cleanly.
Some time ago I though we can simplify the whole vm_update by restricting the
function to change only a single option (and provide a separate update function
for each option type), but I am not sure.
More information about the pve-devel
mailing list