@@ -51,11 +51,7 @@ pub struct Statfs(type_of_statfs);
51
51
type fs_type_t = u32 ;
52
52
#[ cfg( target_os = "android" ) ]
53
53
type fs_type_t = libc:: c_ulong ;
54
- #[ cfg( all(
55
- target_os = "linux" ,
56
- target_arch = "s390x" ,
57
- not( target_env = "musl" )
58
- ) ) ]
54
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not( target_env = "musl" ) ) ) ]
59
55
type fs_type_t = libc:: c_uint ;
60
56
#[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
61
57
type fs_type_t = libc:: c_ulong ;
@@ -324,11 +320,7 @@ impl Statfs {
324
320
}
325
321
326
322
/// Optimal transfer block size
327
- #[ cfg( all(
328
- target_os = "linux" ,
329
- target_arch = "s390x" ,
330
- not( target_env = "musl" )
331
- ) ) ]
323
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not( target_env = "musl" ) ) ) ]
332
324
pub fn optimal_transfer_size ( & self ) -> u32 {
333
325
self . 0 . f_bsize
334
326
}
@@ -383,11 +375,7 @@ impl Statfs {
383
375
384
376
/// Size of a block
385
377
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
386
- #[ cfg( all(
387
- target_os = "linux" ,
388
- target_arch = "s390x" ,
389
- not( target_env = "musl" )
390
- ) ) ]
378
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not( target_env = "musl" ) ) ) ]
391
379
pub fn block_size ( & self ) -> u32 {
392
380
self . 0 . f_bsize
393
381
}
@@ -468,11 +456,7 @@ impl Statfs {
468
456
}
469
457
470
458
/// Maximum length of filenames
471
- #[ cfg( all(
472
- target_os = "linux" ,
473
- target_arch = "s390x" ,
474
- not( target_env = "musl" )
475
- ) ) ]
459
+ #[ cfg( all( target_os = "linux" , target_arch = "s390x" , not( target_env = "musl" ) ) ) ]
476
460
pub fn maximum_name_length ( & self ) -> u32 {
477
461
self . 0 . f_namelen
478
462
}
0 commit comments