@@ -181,7 +181,7 @@ impl<S: BitmapSlice + Send + Sync> PassthroughFs<S> {
181
181
inode : Inode ,
182
182
flags : u32 ,
183
183
fuse_flags : u32 ,
184
- ) -> io:: Result < ( Option < Handle > , OpenOptions ) > {
184
+ ) -> io:: Result < ( Option < Handle > , OpenOptions , Option < u32 > ) > {
185
185
let killpriv = if self . killpriv_v2 . load ( Ordering :: Relaxed )
186
186
&& ( fuse_flags & FOPEN_IN_KILL_SUIDGID != 0 )
187
187
{
@@ -207,7 +207,7 @@ impl<S: BitmapSlice + Send + Sync> PassthroughFs<S> {
207
207
_ => { }
208
208
} ;
209
209
210
- Ok ( ( Some ( handle) , opts) )
210
+ Ok ( ( Some ( handle) , opts, None ) )
211
211
}
212
212
213
213
fn do_getattr (
@@ -384,6 +384,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
384
384
Err ( enosys ( ) )
385
385
} else {
386
386
self . do_open ( inode, flags | ( libc:: O_DIRECTORY as u32 ) , 0 )
387
+ . map ( |( a, b, _) | ( a, b) )
387
388
}
388
389
}
389
390
@@ -504,7 +505,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
504
505
inode : Inode ,
505
506
flags : u32 ,
506
507
fuse_flags : u32 ,
507
- ) -> io:: Result < ( Option < Handle > , OpenOptions ) > {
508
+ ) -> io:: Result < ( Option < Handle > , OpenOptions , Option < u32 > ) > {
508
509
if self . no_open . load ( Ordering :: Relaxed ) {
509
510
info ! ( "fuse: open is not supported." ) ;
510
511
Err ( enosys ( ) )
@@ -536,7 +537,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
536
537
parent : Inode ,
537
538
name : & CStr ,
538
539
args : CreateIn ,
539
- ) -> io:: Result < ( Entry , Option < Handle > , OpenOptions ) > {
540
+ ) -> io:: Result < ( Entry , Option < Handle > , OpenOptions , Option < u32 > ) > {
540
541
self . validate_path_component ( name) ?;
541
542
542
543
let dir = self . inode_map . get ( parent) ?;
@@ -587,7 +588,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
587
588
_ => { }
588
589
} ;
589
590
590
- Ok ( ( entry, ret_handle, opts) )
591
+ Ok ( ( entry, ret_handle, opts, None ) )
591
592
}
592
593
593
594
fn unlink ( & self , _ctx : & Context , parent : Inode , name : & CStr ) -> io:: Result < ( ) > {
0 commit comments