Account for the possible SATA disks too, which means 120 potential
disks.
This means the size of the array triples, however that is unavoidable
with the current way of reading disks.
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
if (def->graphics[def->ngraphics] != NULL)
++def->ngraphics;
- /* def:disks: 4 * 15 scsi + 2 * 2 ide + 2 floppy = 66 */
- def->disks = g_new0(virDomainDiskDefPtr, 66);
+ /* def:disks: 4 * 15 scsi + 4 * 30 sata + 2 * 2 ide + 2 floppy = 186 */
+ def->disks = g_new0(virDomainDiskDefPtr, 186);
def->ndisks = 0;
/* def:disks (scsi) */