[Virtio-fs] [virtiofsd] Issue closed: remove file from host doesn't free up the disk space.

virtiofs-bot at sinrega.org virtiofs-bot at sinrega.org
Tue Nov 29 16:49:34 UTC 2022


Hi guys,
we are using qemu to create some sandboxes and use virtiofs to share some folders between the host and the guest. This is the command that we start the virtiofsd
`virtiofsd --syslog -o cache=auto -o no_posix_lock -o source={some path} --fd=3 -f --thread-pool-size=1`

We find out that with such settings, when we creating some file inside guest and then delete those file in the host. The disk space will not be freed until we run the `rm {file}` inside guest again and guest will report  `no such file or directory` but the space is freed.

We also find out that once we change the option to `cache=none`, this wierd behavior disappears. 

Is this expected. Is there a way that we can enable the cache while make the scenario that I mentioned above work?
---
https://gitlab.com/virtio-fs/virtiofsd/-/issues/64



More information about the Virtio-fs mailing list