[libvirt] [PATCH] Don't squash file format on volume refresh

Cole Robinson crobinso at redhat.com
Fri Apr 3 14:20:29 UTC 2009


Daniel P. Berrange wrote:
> On Thu, Apr 02, 2009 at 02:01:02PM -0400, Cole Robinson wrote:
>> A while back, code was added to
>> storage_backend.c:virStorageBackendUpdateVolTargetInfoFD to try to
>> determine the volume format for iscsi volumes. Unfortunately this
>> function is also called for refreshing file volumes, which has the
>> effect of setting the format as 'raw' whenever a volume is refreshed
>> (ex. after calling virsh vol-info).
>>
>> The attached patch moves the offending code into a wrapper function in
>> the scsi driver. I haven't played with the scsi support yet so this is
>> untested though it's largely code movement.
> 
> Ahhh, this is also what breaks the storage_backend_disk driver
> with it blowing away the partition types for each partition.
> 
> ACK
> 

Applied now.

Thanks,
Cole




More information about the libvir-list mailing list