mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
b8cfdab8b6
commit
97e2d5d266
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user