Module fuse_backend_rs::common::file_traits
source · Expand description
File extension traits to transfer data between File objects and VolatileSlice buffers.
Fuse filesystem servers use normal memory buffers to transfer data from/to File objects. For virtio-fs file servers, they need to transfer data between File objects and guest memory. The guest memory could be accessed through GuestMemory or VolatileSlice objects. And the VolatileSlice trait could also be used to access normal memory buffers too. So several VolatileSlice based File extension traits are introduced to deal with both guest memory and normal memory buffers.
Traits§
- A trait for setting the size of a file.