]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: storagefile: Clarify docs for '@report_broken' of virStorageFileGetMetadata
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Aug 2019 09:28:03 +0000 (11:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Aug 2019 11:49:17 +0000 (13:49 +0200)
virStorageFileGetMetadata does not report error if we can't interrogate
the file somehow. Clarify this in the description of the @report_broken
flag as it implies we should report an error in that case. The problem
is that we don't know whether there's a problem and unfortunately just
offload it to qemu.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virstoragefile.c

index b0e87169a33de9cccea887664c6fabb882d1effa..66cde582fc62a03c60dd6ce32ef8981a52cdd9a7 100644 (file)
@@ -4990,7 +4990,8 @@ virStorageFileGetMetadataRecurse(virStorageSourcePtr src,
  * other non-raw format at will.
  *
  * If @report_broken is true, the whole function fails with a possibly sane
- * error instead of just returning a broken chain.
+ * error instead of just returning a broken chain. Note that the inability for
+ * libvirt to traverse a given source is not considered an error.
  *
  * Caller MUST free result after use via virObjectUnref.
  */