]> xenbits.xensource.com Git - libvirt.git/commit
conf: Set defaultFormat if no storage source XML present
authorJohn Ferlan <jferlan@redhat.com>
Mon, 27 Mar 2017 17:01:56 +0000 (13:01 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 27 Mar 2017 18:31:42 +0000 (14:31 -0400)
commit4572843d4a9326845f71cc7d47808f1ee7e7c42f
tree2074345d4811ed4a753ec55f0ae4ecc03f6c4e56
parent03eeb84fed50074198486ffe4fa3e43df44bd236
conf: Set defaultFormat if no storage source XML present

While parsing if the storage source is not present, then a defaultFormat
was not set. This could lead to oddities such as seeing "unknown" format
in output for the "logical" pool even though the only format the pool could
support would be "lvm2".

This does "put a label" on other pool defaults as follows:

   File System: FS_AUTO
   Network File System: NETFS_AUTO
   Disk: UNKNOWN

Each of which is the "0" value for their respective pools and thus
would be no "real" change.
src/conf/storage_conf.c