mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 07:21:15 +00:00
The FsConfig structure has been recently adjusted so that the default value matches between OpenAPI and CLI. Unfortunately, with the current description, there is no way from the OpenAPI to describe a cache_size value "None", so that DAX does not get enabled. Usually, using a Rust "Option" works because the default value is None. But in this case, the default value is Some(8G), which means we cannot describe a None. This commit tackles the problem, introducing an explicit parameter "dax", and leaving "cache_size" as a simple u64 integer. This way, the default value is dax=true and cache_size=8G, but it lets the opportunity to disable DAX entirely with dax=false, which will simply ignore the cache_size value. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |