It looks like when we are calling the activate method from class COWDatapath it doesn't look the type of the file in the DB but always return VHD unless the VDI is sharable or is a block device. So in our case it is nor sharable nor a block device and the function _get_image_from_vdi() returns VHD.
Shouldn't we look in the database to get the type of the VDI?
filebased
sm-config:type=raw
) on this SR and attach it to a VMIt looks like when we are calling the activate method from
class COWDatapath
it doesn't look the type of the file in the DB but always return VHD unless the VDI is sharable or is a block device. So in our case it is nor sharable nor a block device and the function _get_image_from_vdi() returns VHD. Shouldn't we look in the database to get the type of the VDI?