提交 61322e91 编写于 作者: M Max Filippov 提交者: Riku Voipio

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: NMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NRiku Voipio <riku.voipio@iki.fi>
上级 69137206
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册