]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Explicitly set virStoragePoolTypeInfo FS and NETFS defaults
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 18 Apr 2010 12:00:38 +0000 (14:00 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 20 Apr 2010 19:22:51 +0000 (21:22 +0200)
No semantic change, the now explicitly set default are all zero and
that's what GCC sets unspecified struct members to.

src/conf/storage_conf.c

index 620744f216270d15ea697e79f61f0094da063fb2..6467c73cb6c8b9663ac239e086710cf557606658 100644 (file)
@@ -151,6 +151,7 @@ static virStoragePoolTypeInfo poolTypeInfo[] = {
     { .poolType = VIR_STORAGE_POOL_FS,
       .poolOptions = {
             .flags = (VIR_STORAGE_POOL_SOURCE_DEVICE),
+            .defaultFormat = VIR_STORAGE_POOL_FS_AUTO,
             .formatFromString = virStoragePoolFormatFileSystemTypeFromString,
             .formatToString = virStoragePoolFormatFileSystemTypeToString,
         },
@@ -164,7 +165,7 @@ static virStoragePoolTypeInfo poolTypeInfo[] = {
       .poolOptions = {
             .flags = (VIR_STORAGE_POOL_SOURCE_HOST |
                       VIR_STORAGE_POOL_SOURCE_DIR),
-            .defaultFormat = VIR_STORAGE_POOL_FS_AUTO,
+            .defaultFormat = VIR_STORAGE_POOL_NETFS_AUTO,
             .formatFromString = virStoragePoolFormatFileSystemNetTypeFromString,
             .formatToString = virStoragePoolFormatFileSystemNetTypeToString,
         },