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

Set 9pfs mount cache option to mmap #62

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

chantra
Copy link
Collaborator

@chantra chantra commented Feb 2, 2024

cache=loose or cache=fscache currently do not validate via host, which means that a file modified on the host does not mirror back in the guest without doing some deletion dance....

https://lore.kernel.org/lkml/CAFkjPTmVbyuA0jEAjYhsOsg-SE99yXgehmjqUZb4_uWS_L-ZTQ@mail.gmail.com/

mmap mode seems to be needed for mmap to actually work per https://wiki.qemu.org/Documentation/9p_root_fs#Boot_the_9p_Root_FS_System

Fixes #61

cache=loose or cache=fscache currently do not validate via host, which means that a file modified on the host does not mirror back in the guest without doing some deletion dance....

https://lore.kernel.org/lkml/CAFkjPTmVbyuA0jEAjYhsOsg-SE99yXgehmjqUZb4_uWS_L-ZTQ@mail.gmail.com/ 

mmap mode seems to be needed for `mmap` to actually work per https://wiki.qemu.org/Documentation/9p_root_fs#Boot_the_9p_Root_FS_System

Fixes danobi#61
@chantra chantra merged commit b5af624 into danobi:master Feb 2, 2024
1 check passed
@chantra chantra deleted the 9pfs_mount_mmap branch February 2, 2024 21:58
chantra added a commit to chantra/bpfcitools that referenced this pull request Feb 13, 2024
remove old warning about shared folder not syncing from host. This was resolved
with danobi/vmtest#62

Signed-off-by: Manu Bretelle <chantr4@gmail.com>
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.

mounting /mnt/vmtest with 9pfs cache=mmap option
2 participants