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

Cole Robinson crobinso at redhat.com
Thu Apr 2 18:01:02 UTC 2009

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-dont-squash-format.patch
Type: text/x-patch
Size: 7600 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090402/ce035773/attachment-0001.bin>

More information about the libvir-list mailing list