@@ -53,7 +53,7 @@ type fs_type_t = u32;
53
53
type fs_type_t = libc:: c_ulong ;
54
54
#[ cfg( all( target_os = "linux" , target_arch = "s390x" ) ) ]
55
55
type fs_type_t = libc:: c_uint ;
56
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
56
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
57
57
type fs_type_t = libc:: c_ulong ;
58
58
#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
59
59
type fs_type_t = libc:: c_int ;
@@ -322,7 +322,7 @@ impl Statfs {
322
322
/// Optimal transfer block size
323
323
#[ cfg( any(
324
324
target_os = "android" ,
325
- all( target_os = "linux" , target_env = "musl" )
325
+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) )
326
326
) ) ]
327
327
pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
328
328
self . 0 . f_bsize
@@ -374,7 +374,7 @@ impl Statfs {
374
374
375
375
/// Size of a block
376
376
// f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
377
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
377
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
378
378
pub fn block_size ( & self ) -> libc:: c_ulong {
379
379
self . 0 . f_bsize
380
380
}
@@ -446,7 +446,7 @@ impl Statfs {
446
446
}
447
447
448
448
/// Maximum length of filenames
449
- #[ cfg( all( target_os = "linux" , target_env = "musl" ) ) ]
449
+ #[ cfg( all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ) ]
450
450
pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
451
451
self . 0 . f_namelen
452
452
}
0 commit comments