[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] linux-user: fix ppc target_stat64 st_blocks lay
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 3/5] linux-user: fix ppc target_stat64 st_blocks layout |
Date: |
Fri, 16 Oct 2009 17:02:29 +0300 |
From: Max Filippov <address@hidden>
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
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;
--
1.6.2.1
- [Qemu-devel] [PATCH 0/5] linux-user updates., riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 3/5] linux-user: fix ppc target_stat64 st_blocks layout,
riku . voipio <=
- [Qemu-devel] [PATCH 1/5] implementations of dup3 and fallocate that are good enough to fool LTP, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 4/5] linux-user: don't zero a buffer twice, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 2/5] linux-user: getpriority errno fix, riku . voipio, 2009/10/16
- [Qemu-devel] [PATCH 5/5] linux-user: Update ARM hwcaps, riku . voipio, 2009/10/16
- Re: [Qemu-devel] [PATCH 0/5] linux-user updates., Edgar E. Iglesias, 2009/10/17