mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
conf: Move definition of some disk type enums to a common header
Certain disk config fields are mirrored between the disk and storage source definitions, but the proper types are not available for use in the virStorageSource definition. Move them so they can be used properly. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
01e35b452b
commit
5ac61e7c15
@ -413,17 +413,6 @@ typedef enum {
|
||||
VIR_DOMAIN_DISK_BUS_LAST
|
||||
} virDomainDiskBus;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_CACHE_DEFAULT,
|
||||
VIR_DOMAIN_DISK_CACHE_DISABLE,
|
||||
VIR_DOMAIN_DISK_CACHE_WRITETHRU,
|
||||
VIR_DOMAIN_DISK_CACHE_WRITEBACK,
|
||||
VIR_DOMAIN_DISK_CACHE_DIRECTSYNC,
|
||||
VIR_DOMAIN_DISK_CACHE_UNSAFE,
|
||||
|
||||
VIR_DOMAIN_DISK_CACHE_LAST
|
||||
} virDomainDiskCache;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_ERROR_POLICY_DEFAULT,
|
||||
VIR_DOMAIN_DISK_ERROR_POLICY_STOP,
|
||||
@ -451,32 +440,6 @@ typedef enum {
|
||||
VIR_DOMAIN_DISK_TRANS_LAST
|
||||
} virDomainDiskGeometryTrans;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_IO_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_IO_NATIVE,
|
||||
VIR_DOMAIN_DISK_IO_THREADS,
|
||||
VIR_DOMAIN_DISK_IO_URING,
|
||||
|
||||
VIR_DOMAIN_DISK_IO_LAST
|
||||
} virDomainDiskIo;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_DISCARD_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_DISCARD_UNMAP,
|
||||
VIR_DOMAIN_DISK_DISCARD_IGNORE,
|
||||
|
||||
VIR_DOMAIN_DISK_DISCARD_LAST
|
||||
} virDomainDiskDiscard;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_OFF,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_ON,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_UNMAP,
|
||||
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_LAST
|
||||
} virDomainDiskDetectZeroes;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_MODEL_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_MODEL_VIRTIO,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virconftypes.h: struct typedefs to avoid circular inclusion
|
||||
* virconftypes.h: struct and enum type definitions to avoid circular inclusion
|
||||
*
|
||||
* Copyright (C) 2006-2019 Red Hat, Inc.
|
||||
* Copyright (C) 2006-2008 Daniel P. Berrange
|
||||
@ -261,3 +261,40 @@ typedef struct _virDomainXMLOption virDomainXMLOption;
|
||||
typedef struct _virDomainXMLPrivateDataCallbacks virDomainXMLPrivateDataCallbacks;
|
||||
|
||||
typedef struct _virDomainXenbusControllerOpts virDomainXenbusControllerOpts;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_IO_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_IO_NATIVE,
|
||||
VIR_DOMAIN_DISK_IO_THREADS,
|
||||
VIR_DOMAIN_DISK_IO_URING,
|
||||
|
||||
VIR_DOMAIN_DISK_IO_LAST
|
||||
} virDomainDiskIo;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_CACHE_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_CACHE_DISABLE,
|
||||
VIR_DOMAIN_DISK_CACHE_WRITETHRU,
|
||||
VIR_DOMAIN_DISK_CACHE_WRITEBACK,
|
||||
VIR_DOMAIN_DISK_CACHE_DIRECTSYNC,
|
||||
VIR_DOMAIN_DISK_CACHE_UNSAFE,
|
||||
|
||||
VIR_DOMAIN_DISK_CACHE_LAST
|
||||
} virDomainDiskCache;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_DISCARD_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_DISCARD_UNMAP,
|
||||
VIR_DOMAIN_DISK_DISCARD_IGNORE,
|
||||
|
||||
VIR_DOMAIN_DISK_DISCARD_LAST
|
||||
} virDomainDiskDiscard;
|
||||
|
||||
typedef enum {
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_DEFAULT = 0,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_OFF,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_ON,
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_UNMAP,
|
||||
|
||||
VIR_DOMAIN_DISK_DETECT_ZEROES_LAST
|
||||
} virDomainDiskDetectZeroes;
|
||||
|
Loading…
Reference in New Issue
Block a user