mirror of
git://git.proxmox.com/git/proxmox-fuse.git
synced 2024-12-21 13:34:41 +03:00
fix Open reply
the ffi bindings had wrong parameters there, causing bogus information in the file handle field... Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
def876e2ce
commit
a46c5cff30
@ -469,9 +469,9 @@ impl FuseRequest for Open {
|
||||
|
||||
impl Open {
|
||||
/// The `fh` provided here will be available in later requests for this file handle.
|
||||
pub fn reply(mut self, entry: &sys::EntryParam, fh: u64) -> io::Result<()> {
|
||||
pub fn reply(mut self, fh: u64) -> io::Result<()> {
|
||||
self.file_info.fh = fh;
|
||||
reply_result!(self: sys::fuse_reply_open(self.request.raw, Some(entry), &self.file_info))
|
||||
reply_result!(self: sys::fuse_reply_open(self.request.raw, &self.file_info))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ extern "C" {
|
||||
pub fn fuse_reply_buf(req: Request, buf: *const c_char, size: size_t) -> c_int;
|
||||
pub fn fuse_reply_entry(req: Request, entry: Option<&EntryParam>) -> c_int;
|
||||
pub fn fuse_reply_create(req: Request, entry: Option<&EntryParam>, file_info: *const FuseFileInfo) -> c_int;
|
||||
pub fn fuse_reply_open(req: Request, entry: Option<&EntryParam>, file_info: *const FuseFileInfo) -> c_int;
|
||||
pub fn fuse_reply_open(req: Request, file_info: *const FuseFileInfo) -> c_int;
|
||||
pub fn fuse_reply_xattr(req: Request, size: size_t) -> c_int;
|
||||
pub fn fuse_reply_readlink(req: Request, link: StrPtr) -> c_int;
|
||||
pub fn fuse_reply_none(req: Request);
|
||||
|
Loading…
Reference in New Issue
Block a user