@@ -56,11 +56,10 @@ type fs_type_t = u32;
56
56
type fs_type_t = libc:: c_ulong ;
57
57
#[ cfg( all(
58
58
target_os = "linux" ,
59
- target_arch = "s390x" ,
60
- not( target_env = "musl" )
59
+ target_arch = "s390x"
61
60
) ) ]
62
61
type fs_type_t = libc:: c_uint ;
63
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_env = "ohos" ) ) ) ]
62
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_env = "ohos" ) , not ( target_arch = "s390x" ) ) ) ]
64
63
type fs_type_t = libc:: c_ulong ;
65
64
#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
66
65
type fs_type_t = libc:: c_int ;
@@ -328,8 +327,7 @@ impl Statfs {
328
327
/// Optimal transfer block size
329
328
#[ cfg( all(
330
329
target_os = "linux" ,
331
- target_arch = "s390x" ,
332
- not( target_env = "musl" )
330
+ target_arch = "s390x"
333
331
) ) ]
334
332
pub fn optimal_transfer_size ( & self ) -> u32 {
335
333
self . 0 . f_bsize
@@ -338,7 +336,7 @@ impl Statfs {
338
336
/// Optimal transfer block size
339
337
#[ cfg( any(
340
338
target_os = "android" ,
341
- all( target_os = "linux" , target_env = "musl" ) ,
339
+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ,
342
340
all( target_os = "linux" , target_env = "ohos" )
343
341
) ) ]
344
342
pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
@@ -387,16 +385,15 @@ impl Statfs {
387
385
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
388
386
#[ cfg( all(
389
387
target_os = "linux" ,
390
- target_arch = "s390x" ,
391
- not( target_env = "musl" )
388
+ target_arch = "s390x"
392
389
) ) ]
393
390
pub fn block_size ( & self ) -> u32 {
394
391
self . 0 . f_bsize
395
392
}
396
393
397
394
/// Size of a block
398
395
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
399
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
396
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
400
397
pub fn block_size ( & self ) -> libc:: c_ulong {
401
398
self . 0 . f_bsize
402
399
}
@@ -472,15 +469,14 @@ impl Statfs {
472
469
/// Maximum length of filenames
473
470
#[ cfg( all(
474
471
target_os = "linux" ,
475
- target_arch = "s390x" ,
476
- not( target_env = "musl" )
472
+ target_arch = "s390x"
477
473
) ) ]
478
474
pub fn maximum_name_length ( & self ) -> u32 {
479
475
self . 0 . f_namelen
480
476
}
481
477
482
478
/// Maximum length of filenames
483
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
479
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
484
480
pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
485
481
self . 0 . f_namelen
486
482
}
0 commit comments