File tree 4 files changed +15
-7
lines changed
4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ required-features = ["abi-7-12"]
77
77
78
78
[[example ]]
79
79
name = " notify_inval_inode"
80
- required-features = [" abi-7-12 " ]
80
+ required-features = [" abi-7-15 " ]
81
81
82
82
[[example ]]
83
83
name = " ioctl"
Original file line number Diff line number Diff line change @@ -1098,6 +1098,10 @@ impl Filesystem for SimpleFS {
1098
1098
flags : u32 ,
1099
1099
reply : ReplyEmpty ,
1100
1100
) {
1101
+ debug ! (
1102
+ "rename() called with: source {parent:?} {name:?}, \
1103
+ destination {new_parent:?} {new_name:?}, flags {flags:#b}",
1104
+ ) ;
1101
1105
let mut inode_attrs = match self . lookup_name ( parent, name) {
1102
1106
Ok ( attrs) => attrs,
1103
1107
Err ( error_code) => {
@@ -1922,8 +1926,7 @@ fn as_file_kind(mut mode: u32) -> FileKind {
1922
1926
}
1923
1927
1924
1928
fn get_groups ( pid : u32 ) -> Vec < u32 > {
1925
- #[ cfg( not( target_os = "macos" ) ) ]
1926
- {
1929
+ if cfg ! ( not( target_os = "macos" ) ) {
1927
1930
let path = format ! ( "/proc/{pid}/task/{pid}/status" ) ;
1928
1931
let file = File :: open ( path) . unwrap ( ) ;
1929
1932
for line in BufReader :: new ( file) . lines ( ) {
Original file line number Diff line number Diff line change @@ -615,9 +615,9 @@ impl<'a> Request<'a> {
615
615
se. filesystem . setvolname ( self , x. name ( ) , self . reply ( ) ) ;
616
616
}
617
617
#[ cfg( target_os = "macos" ) ]
618
- ll:: Operation :: GetXTimes ( _ ) => {
618
+ ll:: Operation :: GetXTimes ( x ) => {
619
619
se. filesystem
620
- . getxtimes ( self , self . request . nodeid ( ) . into ( ) , self . reply ( ) ) ;
620
+ . getxtimes ( self , x . nodeid ( ) . into ( ) , self . reply ( ) ) ;
621
621
}
622
622
#[ cfg( target_os = "macos" ) ]
623
623
ll:: Operation :: Exchange ( x) => {
Original file line number Diff line number Diff line change
1
+ // No integration tests for non-Linux targets, so turn off the module for now.
2
+ #![ cfg( target_os = "linux" ) ]
3
+
1
4
use fuser:: { Filesystem , Session } ;
2
5
use std:: rc:: Rc ;
3
6
use std:: thread;
@@ -7,8 +10,10 @@ use tempfile::TempDir;
7
10
#[ test]
8
11
#[ cfg( target_os = "linux" ) ]
9
12
fn unmount_no_send ( ) {
10
- // Rc to make this !Send
11
- struct NoSendFS ( Rc < ( ) > ) ;
13
+ struct NoSendFS (
14
+ // Rc to make this !Send
15
+ #[ allow( dead_code) ] Rc < ( ) > ,
16
+ ) ;
12
17
13
18
impl Filesystem for NoSendFS { }
14
19
You can’t perform that action at this time.
0 commit comments