Commit 2c24ce4
authored
aosp: fix musl_statvfs layout (#11216)
aosp: fix musl_statvfs layout
musl's fsblkcnt_t/fsfilcnt_t are 64-bit on all arch, but bionic defines
them
as 32-bit unsigned long on 32-bit targets. On 32-bit arch, the values
can land in wrong offsets in the musl layer.
Fixes the PosixStatvfsTest NPLB tests (SunnyDay, UsageChanges), which
read
misaligned fields:
posix_sys_statvfs_test.cc:46 f_namemax == 0 (expected > 0)
Bug: 5320684091 parent 0a4dde4 commit 2c24ce4
1 file changed
Lines changed: 12 additions & 6 deletions
File tree
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments