@@ -56,11 +56,10 @@ type fs_type_t = u32;
5656type fs_type_t = libc:: c_ulong ;
5757#[ cfg( all(
5858 target_os = "linux" ,
59- target_arch = "s390x" ,
60- not( target_env = "musl" )
59+ target_arch = "s390x"
6160) ) ]
6261type 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" ) ) ) ]
6463type fs_type_t = libc:: c_ulong ;
6564#[ cfg( all( target_os = "linux" , target_env = "uclibc" ) ) ]
6665type fs_type_t = libc:: c_int ;
@@ -328,8 +327,7 @@ impl Statfs {
328327 /// Optimal transfer block size
329328 #[ cfg( all(
330329 target_os = "linux" ,
331- target_arch = "s390x" ,
332- not( target_env = "musl" )
330+ target_arch = "s390x"
333331 ) ) ]
334332 pub fn optimal_transfer_size ( & self ) -> u32 {
335333 self . 0 . f_bsize
@@ -338,7 +336,7 @@ impl Statfs {
338336 /// Optimal transfer block size
339337 #[ cfg( any(
340338 target_os = "android" ,
341- all( target_os = "linux" , target_env = "musl" ) ,
339+ all( target_os = "linux" , target_env = "musl" , not ( target_arch = "s390x" ) ) ,
342340 all( target_os = "linux" , target_env = "ohos" )
343341 ) ) ]
344342 pub fn optimal_transfer_size ( & self ) -> libc:: c_ulong {
@@ -387,16 +385,15 @@ impl Statfs {
387385 // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
388386 #[ cfg( all(
389387 target_os = "linux" ,
390- target_arch = "s390x" ,
391- not( target_env = "musl" )
388+ target_arch = "s390x"
392389 ) ) ]
393390 pub fn block_size ( & self ) -> u32 {
394391 self . 0 . f_bsize
395392 }
396393
397394 /// Size of a block
398395 // 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" ) ) ) ]
400397 pub fn block_size ( & self ) -> libc:: c_ulong {
401398 self . 0 . f_bsize
402399 }
@@ -472,15 +469,14 @@ impl Statfs {
472469 /// Maximum length of filenames
473470 #[ cfg( all(
474471 target_os = "linux" ,
475- target_arch = "s390x" ,
476- not( target_env = "musl" )
472+ target_arch = "s390x"
477473 ) ) ]
478474 pub fn maximum_name_length ( & self ) -> u32 {
479475 self . 0 . f_namelen
480476 }
481477
482478 /// 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" ) ) ) ]
484480 pub fn maximum_name_length ( & self ) -> libc:: c_ulong {
485481 self . 0 . f_namelen
486482 }
0 commit comments