]> git.proxmox.com Git - pve-manager.git/commit
ui: guest import: implement 'map-to-sata' checkbox
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 12 Mar 2024 13:25:39 +0000 (14:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2024 14:17:43 +0000 (15:17 +0100)
commitd39e2492de3f96b1c391f88f6414068967b1f832
tree4c0256bb0549ba9babbf38cd42e4b94bf0d73293
parent163868e119f502bc9b2be61a32ac2766a526624f
ui: guest import: implement 'map-to-sata' checkbox

this is useful when wanting to change to virtioscsi for windows vms,
since we cannot have multiple different scsi controllers.

we assume here that all assigned sata disks/cds have a continuous range,
so sata0, sata1, etc. without any holes

with that assumption, we can use the maximum sata index and simply put
the scsi ones after that.

when there are too many disks to map correctly to sata, show a warning
with the disk id that contains a tooltip.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/window/GuestImport.js