Closed kevinoid closed 4 years ago
Nice catch (I only used tmpfs until now). I assume the problem is with the logic that test if a directory is empty (I check for the directory "file" size which is probably not the right way to do it).
Thanks @hammerg! The fix looks great. Are there any publicly available snapshot builds that I could test, or would I need to build+sign myself?
When sharing a host directory with a Windows 10 guest via virtio-fs using
viofs.sys
andvirtiofs.exe
fromvirtio-win-0.1.189.iso
and WinFSP 2020.1, when I run the following from a command prompt (assuming the virtio-fs directory is mounted asz:
in the guest and initially empty):It prints:
and the directory is not removed. This behavior occurs when the host directory is
ext4
orntfs-3g
, but nottmpfs
.
*** VirtFsFuseRequest: >>req: 26 unique: 2 len: 56 *** VirtFsFuseRequest: <virtiofs.exe -d -1
debug logI have been unable to reproduce the behavior using Alpine Linux, so I suspect the issue is in the guest, rather than the host.
Thanks for creating/supporting these drivers! Let me know if there is anything else I can do to help debug.
Thanks again, Kevin