vhost_user_fs: Add support for CopyFileRange

Add support for the CopyFileRange request, introduced in FUSE 7.28.

Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez
2020-03-20 14:08:26 +01:00
committed by Rob Bradford
parent b8cfdab8b6
commit 97e2d5d266
4 changed files with 121 additions and 0 deletions

View File

@@ -1049,6 +1049,19 @@ pub struct LseekOut {
}
unsafe impl ByteValued for LseekOut {}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct CopyfilerangeIn {
pub fh_in: u64,
pub off_in: u64,
pub nodeid_out: u64,
pub fh_out: u64,
pub off_out: u64,
pub len: u64,
pub flags: u64,
}
unsafe impl ByteValued for CopyfilerangeIn {}
bitflags! {
pub struct SetupmappingFlags: u64 {
const WRITE = 0x1;