Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passthrough: validate config regarding to cache mode #150

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

eryugey
Copy link
Contributor

@eryugey eryugey commented Sep 12, 2023

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.

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.

Signed-off-by: Eryu Guan <[email protected]>
@jiangliu jiangliu merged commit 1de5a18 into cloud-hypervisor:master Sep 21, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants