@@ -181,7 +181,7 @@ impl<S: BitmapSlice + Send + Sync> PassthroughFs<S> {
181181 inode : Inode ,
182182 flags : u32 ,
183183 fuse_flags : u32 ,
184- ) -> io:: Result < ( Option < Handle > , OpenOptions ) > {
184+ ) -> io:: Result < ( Option < Handle > , OpenOptions , Option < u32 > ) > {
185185 let killpriv = if self . killpriv_v2 . load ( Ordering :: Relaxed )
186186 && ( fuse_flags & FOPEN_IN_KILL_SUIDGID != 0 )
187187 {
@@ -207,7 +207,7 @@ impl<S: BitmapSlice + Send + Sync> PassthroughFs<S> {
207207 _ => { }
208208 } ;
209209
210- Ok ( ( Some ( handle) , opts) )
210+ Ok ( ( Some ( handle) , opts, None ) )
211211 }
212212
213213 fn do_getattr (
@@ -384,6 +384,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
384384 Err ( enosys ( ) )
385385 } else {
386386 self . do_open ( inode, flags | ( libc:: O_DIRECTORY as u32 ) , 0 )
387+ . map ( |( a, b, _) | ( a, b) )
387388 }
388389 }
389390
@@ -504,7 +505,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
504505 inode : Inode ,
505506 flags : u32 ,
506507 fuse_flags : u32 ,
507- ) -> io:: Result < ( Option < Handle > , OpenOptions ) > {
508+ ) -> io:: Result < ( Option < Handle > , OpenOptions , Option < u32 > ) > {
508509 if self . no_open . load ( Ordering :: Relaxed ) {
509510 info ! ( "fuse: open is not supported." ) ;
510511 Err ( enosys ( ) )
@@ -536,7 +537,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
536537 parent : Inode ,
537538 name : & CStr ,
538539 args : CreateIn ,
539- ) -> io:: Result < ( Entry , Option < Handle > , OpenOptions ) > {
540+ ) -> io:: Result < ( Entry , Option < Handle > , OpenOptions , Option < u32 > ) > {
540541 self . validate_path_component ( name) ?;
541542
542543 let dir = self . inode_map . get ( parent) ?;
@@ -587,7 +588,7 @@ impl<S: BitmapSlice + Send + Sync> FileSystem for PassthroughFs<S> {
587588 _ => { }
588589 } ;
589590
590- Ok ( ( entry, ret_handle, opts) )
591+ Ok ( ( entry, ret_handle, opts, None ) )
591592 }
592593
593594 fn unlink ( & self , _ctx : & Context , parent : Inode , name : & CStr ) -> io:: Result < ( ) > {
0 commit comments