Add a flag denoting that a virStorageSource is going to be used as a
floppy image. This will be useful in cases where the user passes in
files which shall be exposed as an image to the guest.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
n->iomode = disk->iomode;
n->cachemode = disk->cachemode;
n->discard = disk->discard;
+
+ if (disk->device == VIR_DOMAIN_DISK_DEVICE_FLOPPY)
+ n->floppyimg = true;
}
return 0;
int cachemode; /* enum virDomainDiskCache */
int discard; /* enum virDomainDiskDiscard */
int detect_zeroes; /* enum virDomainDiskDetectZeroes */
+
+ bool floppyimg; /* set to true if the storage source is going to be used
+ as a source for floppy drive */
};