File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -193,20 +193,17 @@ cfg_has_statx! {{
193
193
return Some ( Err ( err) ) ;
194
194
}
195
195
196
- // Availability not checked yet .
196
+ // `ENOSYS` might come from a faulty FUSE driver .
197
197
//
198
- // First try the cheap way.
199
- if err. raw_os_error( ) == Some ( libc:: ENOSYS ) {
200
- STATX_SAVED_STATE . store( STATX_STATE :: Unavailable as u8 , Ordering :: Relaxed ) ;
201
- return None ;
202
- }
203
-
204
- // Error other than `ENOSYS` is not a good enough indicator -- it is
198
+ // Other errors are not a good enough indicator either -- it is
205
199
// known that `EPERM` can be returned as a result of using seccomp to
206
200
// block the syscall.
201
+ //
207
202
// Availability is checked by performing a call which expects `EFAULT`
208
203
// if the syscall is usable.
204
+ //
209
205
// See: https://github.com/rust-lang/rust/issues/65662
206
+ //
210
207
// FIXME this can probably just do the call if `EPERM` was received, but
211
208
// previous iteration of the code checked it for all errors and for now
212
209
// this is retained.
You can’t perform that action at this time.
0 commit comments