mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Fix OpenAPI definition of for lock granularity
Use CamelCase as per the existing definitions (which allows the removal of the serde transformation) Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -147,7 +147,6 @@ impl LockGranularity {
|
||||
/// image. Without a byte-range lock, some NFS implementations may treat the
|
||||
/// entire file as exclusively locked and prevent such operations (e.g. NetApp).
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
pub enum LockGranularityChoice {
|
||||
/// Byte-range lock covering [0, size).
|
||||
#[default]
|
||||
|
||||
@@ -945,8 +945,8 @@ components:
|
||||
|
||||
LockGranularity:
|
||||
type: string
|
||||
enum: [byte-range, full]
|
||||
default: byte-range
|
||||
enum: [ByteRange, Full]
|
||||
default: ByteRange
|
||||
|
||||
DiskConfig:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user