mirror of
git://git.proxmox.com/git/proxmox-fuse.git
synced 2025-03-10 16:58:38 +03:00
add Read::reply_vectored
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
93099f76b6
commit
def876e2ce
@ -6,6 +6,7 @@
|
||||
|
||||
use std::ffi::{CStr, CString, OsStr, OsString};
|
||||
use std::io;
|
||||
use std::io::IoSlice;
|
||||
use std::os::unix::ffi::OsStrExt;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
@ -516,6 +517,10 @@ impl Read {
|
||||
let ptr = data.as_ptr() as *const libc::c_char;
|
||||
reply_result!(self: sys::fuse_reply_buf(self.request.raw, ptr, data.len()))
|
||||
}
|
||||
|
||||
pub fn reply_vectored(self, data: &[IoSlice<'_>]) -> io::Result<()> {
|
||||
reply_result!(self: sys::fuse_reply_iov(self.request.raw, data.as_ptr(), data.len() as _))
|
||||
}
|
||||
}
|
||||
|
||||
pub enum SetTime {
|
||||
|
Loading…
x
Reference in New Issue
Block a user