This will simplify adding support for qcow2 external data_file
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
static int
storage_source_add_files(virStorageSourcePtr src,
- virBufferPtr buf)
+ virBufferPtr buf,
+ size_t depth)
{
- size_t depth = 0;
virStorageSourcePtr tmp;
for (tmp = src; virStorageSourceIsBacking(tmp); tmp = tmp->backingStore) {
/* XXX should handle open errors more careful than just ignoring them.
*/
- if (storage_source_add_files(disk->src, &buf) < 0)
+ if (storage_source_add_files(disk->src, &buf, 0) < 0)
goto cleanup;
}