]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: Fixing missing 'backingStore' tag from volume XML dumps.
authorJulio Faracco <jcfaracco@gmail.com>
Tue, 2 Jan 2018 18:52:20 +0000 (16:52 -0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Jan 2018 15:04:24 +0000 (16:04 +0100)
After commit a693fdb 'vol-dumpxml' missed the ability to show backingStore
information. This commit adds a volume type for files that fixes this
problem.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1529663

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
src/storage/storage_util.c

index 899a557588d810a0f1e15de67b8a694704f156ad..9e1b63a4360929ca38165499fdda250ce3e4972e 100644 (file)
@@ -1957,6 +1957,8 @@ virStorageBackendUpdateVolTargetInfoFD(virStorageSourcePtr target,
     target->timestamps->ctime = get_stat_ctime(sb);
     target->timestamps->mtime = get_stat_mtime(sb);
 
+    target->type = VIR_STORAGE_TYPE_FILE;
+
     VIR_FREE(target->perms->label);
 
 #if WITH_SELINUX