cloud-hypervisor / fuse-backend-rs

Rust crate for implementing FUSE backends
Apache License 2.0
129 stars 63 forks source link

passthrough: validate config regarding to cache mode #150

Closed eryugey closed 9 months ago

eryugey commented 9 months ago

Kernel fuse module defaults to KEEP_CACHE in no_open mode, and passthroughfs only sets KEEP_CACHE in cache=always mode. So we should reject no_open if cache is not always.

Also disable writeback cache if cache=none, as we should disable all cache in cache=none mode.