mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-25 17:31:16 +00:00
vhost-user-fs: add dax tests for vhost_user_fs rust daemon
Now that vhost_user_fs rust daemon supports virtiofs's dax mode, this adds the two dax tests accordingly. Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
This commit is contained in:
parent
59958f0a61
commit
4970e2f703
15
src/main.rs
15
src/main.rs
@ -3387,6 +3387,21 @@ mod tests {
|
|||||||
test_virtio_fs(false, None, "none", &prepare_virtiofsd)
|
test_virtio_fs(false, None, "none", &prepare_virtiofsd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(feature = "mmio"), test)]
|
||||||
|
fn test_virtio_fs_dax_on_default_cache_size_w_vhost_user_fs_daemon() {
|
||||||
|
test_virtio_fs(true, None, "none", &prepare_vhost_user_fs_daemon)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(feature = "mmio"), test)]
|
||||||
|
fn test_virtio_fs_dax_on_cache_size_1_gib_w_vhost_user_fs_daemon() {
|
||||||
|
test_virtio_fs(
|
||||||
|
true,
|
||||||
|
Some(0x4000_0000),
|
||||||
|
"none",
|
||||||
|
&prepare_vhost_user_fs_daemon,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
#[cfg_attr(not(feature = "mmio"), test)]
|
||||||
fn test_virtio_fs_dax_off_w_vhost_user_fs_daemon() {
|
fn test_virtio_fs_dax_off_w_vhost_user_fs_daemon() {
|
||||||
test_virtio_fs(false, None, "none", &prepare_vhost_user_fs_daemon)
|
test_virtio_fs(false, None, "none", &prepare_vhost_user_fs_daemon)
|
||||||
|
Loading…
Reference in New Issue
Block a user