Skip to content

Commit

Permalink
fix(blobfs): Use correct result types for open and create
Browse files Browse the repository at this point in the history
Use the correct result types for `open` and `create` expected by the
`fuse_backend_rs` 0.12.0 `Filesystem` trait

Signed-off-by: Kostis Papazafeiropoulos <[email protected]>
  • Loading branch information
papazof authored and imeoer committed Jan 15, 2025
1 parent 83fa946 commit f60e40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rafs/src/blobfs/sync_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl FileSystem for BlobFs {
inode: Inode,
flags: u32,
_fuse_flags: u32,
) -> io::Result<(Option<Handle>, OpenOptions)> {
) -> io::Result<(Option<Handle>, OpenOptions, Option<u32>)> {
self.pfs.open(_ctx, inode, flags, _fuse_flags)
}

Expand All @@ -188,7 +188,7 @@ impl FileSystem for BlobFs {
_parent: Inode,
_name: &CStr,
_args: CreateIn,
) -> io::Result<(Entry, Option<Handle>, OpenOptions)> {
) -> io::Result<(Entry, Option<Handle>, OpenOptions, Option<u32>)> {
Err(eacces!("Create request is not allowed in blobfs"))
}

Expand Down

0 comments on commit f60e40a

Please sign in to comment.