[libvirt] [PATCH 3/4] storage_file: Add a new flag to mark backing files that are safe to probe
Eric Blake
eblake at redhat.com
Fri Nov 19 23:06:57 UTC 2010
On 11/19/2010 09:18 AM, Adam Litke wrote:
> Signed-off-by: Adam Litke <agl at us.ibm.com>
> ---
> src/conf/domain_conf.c | 4 ++++
> src/util/storage_file.c | 2 +-
> src/util/storage_file.h | 1 +
> 3 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 2d11785..a08c846 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -7825,6 +7825,10 @@ int virDomainDiskDefForeachPath(virDomainDiskDefPtr disk,
> if (format == VIR_STORAGE_FILE_AUTO &&
> !allowProbing)
> format = VIR_STORAGE_FILE_RAW; /* Stops further recursion */
> +
> + /* Allow probing for image formats that are safe */
> + if (format == VIR_STORAGE_FILE_AUTO_SAFE)
> + format = VIR_STORAGE_FILE_AUTO;
> } while (nextpath);
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101119/d77b3c02/attachment-0001.sig>
More information about the libvir-list
mailing list