Make it easier for the humans to read/compare the outputs.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
17 files changed:
"capacity: %lld\n"
"encryption: %d\n"
"relPath:%s\n"
- "type:%d\n"
- "format:%d\n"
+ "type:%s\n"
+ "format:%s\n"
"protocol:%s\n"
"hostname:%s\n\n",
strippedPath,
elt->capacity,
!!elt->encryption,
strippedRelPath,
- elt->type,
- elt->format,
+ NULLSTR(virStorageTypeToString(elt->type)),
+ NULLSTR(virStorageFileFormatTypeToString(elt->format)),
virStorageNetProtocolTypeToString(elt->protocol),
NULLSTR(elt->nhosts ? elt->hosts[0].name : NULL));
}
capacity: 0
encryption: 0
relPath:<null>
-type:3
-format:2
+type:dir
+format:dir
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:3
-format:2
+type:dir
+format:dir
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:3
-format:1
+type:dir
+format:raw
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:4
-format:1
+type:network
+format:raw
protocol:nbd
hostname:example.org
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:qcow2
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:qcow2_qcow2-auto.qcow2
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:qcow2
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:qcow2_raw-auto.qcow2
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:raw
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:raw
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:../sub/link1
-type:1
-format:14
+type:file
+format:qcow2
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:../raw
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 1024
encryption: 0
relPath:<null>
-type:1
-format:15
+type:file
+format:qed
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:raw
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>
capacity: 0
encryption: 0
relPath:<null>
-type:1
-format:1
+type:file
+format:raw
protocol:none
hostname:<null>