提交 76359ee5 编写于 作者: O Osier Yang

storage_conf: Fix indentions in storage_conf.c

Uses the 4 spaces for indention.
上级 c8a3cf89
...@@ -146,106 +146,106 @@ virStorageVolumeFormatFromString(const char *format) ...@@ -146,106 +146,106 @@ virStorageVolumeFormatFromString(const char *format)
} }
static virStoragePoolTypeInfo poolTypeInfo[] = { static virStoragePoolTypeInfo poolTypeInfo[] = {
{ .poolType = VIR_STORAGE_POOL_LOGICAL, {.poolType = VIR_STORAGE_POOL_LOGICAL,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_NAME | .flags = (VIR_STORAGE_POOL_SOURCE_NAME |
VIR_STORAGE_POOL_SOURCE_DEVICE), VIR_STORAGE_POOL_SOURCE_DEVICE),
.defaultFormat = VIR_STORAGE_POOL_LOGICAL_LVM2, .defaultFormat = VIR_STORAGE_POOL_LOGICAL_LVM2,
.formatFromString = virStoragePoolFormatLogicalTypeFromString, .formatFromString = virStoragePoolFormatLogicalTypeFromString,
.formatToString = virStoragePoolFormatLogicalTypeToString, .formatToString = virStoragePoolFormatLogicalTypeToString,
}, },
}, },
{ .poolType = VIR_STORAGE_POOL_DIR, {.poolType = VIR_STORAGE_POOL_DIR,
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_FILE_RAW, .defaultFormat = VIR_STORAGE_FILE_RAW,
.formatFromString = virStorageVolumeFormatFromString, .formatFromString = virStorageVolumeFormatFromString,
.formatToString = virStorageFileFormatTypeToString, .formatToString = virStorageFileFormatTypeToString,
}, },
}, },
{ .poolType = VIR_STORAGE_POOL_FS, {.poolType = VIR_STORAGE_POOL_FS,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_DEVICE), .flags = (VIR_STORAGE_POOL_SOURCE_DEVICE),
.defaultFormat = VIR_STORAGE_POOL_FS_AUTO, .defaultFormat = VIR_STORAGE_POOL_FS_AUTO,
.formatFromString = virStoragePoolFormatFileSystemTypeFromString, .formatFromString = virStoragePoolFormatFileSystemTypeFromString,
.formatToString = virStoragePoolFormatFileSystemTypeToString, .formatToString = virStoragePoolFormatFileSystemTypeToString,
}, },
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_FILE_RAW, .defaultFormat = VIR_STORAGE_FILE_RAW,
.formatFromString = virStorageVolumeFormatFromString, .formatFromString = virStorageVolumeFormatFromString,
.formatToString = virStorageFileFormatTypeToString, .formatToString = virStorageFileFormatTypeToString,
}, },
}, },
{ .poolType = VIR_STORAGE_POOL_NETFS, {.poolType = VIR_STORAGE_POOL_NETFS,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_HOST | .flags = (VIR_STORAGE_POOL_SOURCE_HOST |
VIR_STORAGE_POOL_SOURCE_DIR), VIR_STORAGE_POOL_SOURCE_DIR),
.defaultFormat = VIR_STORAGE_POOL_NETFS_AUTO, .defaultFormat = VIR_STORAGE_POOL_NETFS_AUTO,
.formatFromString = virStoragePoolFormatFileSystemNetTypeFromString, .formatFromString = virStoragePoolFormatFileSystemNetTypeFromString,
.formatToString = virStoragePoolFormatFileSystemNetTypeToString, .formatToString = virStoragePoolFormatFileSystemNetTypeToString,
}, },
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_FILE_RAW, .defaultFormat = VIR_STORAGE_FILE_RAW,
.formatFromString = virStorageVolumeFormatFromString, .formatFromString = virStorageVolumeFormatFromString,
.formatToString = virStorageFileFormatTypeToString, .formatToString = virStorageFileFormatTypeToString,
}, },
}, },
{ .poolType = VIR_STORAGE_POOL_ISCSI, {.poolType = VIR_STORAGE_POOL_ISCSI,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_HOST | .flags = (VIR_STORAGE_POOL_SOURCE_HOST |
VIR_STORAGE_POOL_SOURCE_DEVICE | VIR_STORAGE_POOL_SOURCE_DEVICE |
VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN), VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN),
}, },
.volOptions = { .volOptions = {
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
} }
}, },
{ .poolType = VIR_STORAGE_POOL_SCSI, {.poolType = VIR_STORAGE_POOL_SCSI,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_ADAPTER), .flags = (VIR_STORAGE_POOL_SOURCE_ADAPTER),
}, },
.volOptions = { .volOptions = {
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
} }
}, },
{ .poolType = VIR_STORAGE_POOL_RBD, {.poolType = VIR_STORAGE_POOL_RBD,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_HOST | .flags = (VIR_STORAGE_POOL_SOURCE_HOST |
VIR_STORAGE_POOL_SOURCE_NETWORK | VIR_STORAGE_POOL_SOURCE_NETWORK |
VIR_STORAGE_POOL_SOURCE_NAME), VIR_STORAGE_POOL_SOURCE_NAME),
}, },
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_FILE_RAW, .defaultFormat = VIR_STORAGE_FILE_RAW,
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
} }
}, },
{ .poolType = VIR_STORAGE_POOL_SHEEPDOG, {.poolType = VIR_STORAGE_POOL_SHEEPDOG,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_HOST | .flags = (VIR_STORAGE_POOL_SOURCE_HOST |
VIR_STORAGE_POOL_SOURCE_NETWORK | VIR_STORAGE_POOL_SOURCE_NETWORK |
VIR_STORAGE_POOL_SOURCE_NAME), VIR_STORAGE_POOL_SOURCE_NAME),
}, },
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_FILE_RAW, .defaultFormat = VIR_STORAGE_FILE_RAW,
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
} }
}, },
{ .poolType = VIR_STORAGE_POOL_MPATH, {.poolType = VIR_STORAGE_POOL_MPATH,
.volOptions = { .volOptions = {
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
} }
}, },
{ .poolType = VIR_STORAGE_POOL_DISK, {.poolType = VIR_STORAGE_POOL_DISK,
.poolOptions = { .poolOptions = {
.flags = (VIR_STORAGE_POOL_SOURCE_DEVICE), .flags = (VIR_STORAGE_POOL_SOURCE_DEVICE),
.defaultFormat = VIR_STORAGE_POOL_DISK_UNKNOWN, .defaultFormat = VIR_STORAGE_POOL_DISK_UNKNOWN,
.formatFromString = virStoragePoolFormatDiskTypeFromString, .formatFromString = virStoragePoolFormatDiskTypeFromString,
.formatToString = virStoragePoolFormatDiskTypeToString, .formatToString = virStoragePoolFormatDiskTypeToString,
}, },
.volOptions = { .volOptions = {
.defaultFormat = VIR_STORAGE_VOL_DISK_NONE, .defaultFormat = VIR_STORAGE_VOL_DISK_NONE,
.formatFromString = virStorageVolFormatDiskTypeFromString, .formatFromString = virStorageVolFormatDiskTypeFromString,
.formatToString = virStorageVolFormatDiskTypeToString, .formatToString = virStorageVolFormatDiskTypeToString,
}, },
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册