diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2009-09-01 23:27:47 +0400 |
---|---|---|
committer | Riku Voipio <riku.voipio@iki.fi> | 2009-10-15 23:55:56 +0300 |
commit | 61322e91a177b7b79ac2df5a540fe67db2d9e2dd (patch) | |
tree | db9915bb89adc163a50d2b48753cd83e92675399 /linux-user/syscall_defs.h | |
parent | 691372066ca89e4669b41fc55cab6a061d88af6c (diff) | |
download | qemu-61322e91a177b7b79ac2df5a540fe67db2d9e2dd.zip qemu-61322e91a177b7b79ac2df5a540fe67db2d9e2dd.tar.gz qemu-61322e91a177b7b79ac2df5a540fe67db2d9e2dd.tar.bz2 |
linux-user: fix ppc target_stat64 st_blocks layout
Swap __pad1 and st_blocks fields location to maintain proper alignment.
This fixes incorrect 'du' and 'stat' report on ppc guest.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/syscall_defs.h')
-rw-r--r-- | linux-user/syscall_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index c018165..dce36b2 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1187,8 +1187,8 @@ struct __attribute__((__packed__)) target_stat64 { unsigned long long __pad0; long long st_size; int st_blksize; - long long st_blocks; /* Number 512-byte blocks allocated. */ unsigned int __pad1; + long long st_blocks; /* Number 512-byte blocks allocated. */ int target_st_atime; unsigned int target_st_atime_nsec; int target_st_mtime; |