From: Paolo 'Blaisorblade' Giarrusso This is the minimal fix to make 64-bit UML binaries create 32-bit compatible COW files and read them. I've indeed tested that current code doesn't do this - the code gets SIGFPE for a division by a value read at the wrong place, where 0 is found. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton --- arch/um/drivers/cow_user.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/um/drivers/cow_user.c~uml-make-64-bit-cow-files-compatible-with-32-bit-ones arch/um/drivers/cow_user.c --- 25/arch/um/drivers/cow_user.c~uml-make-64-bit-cow-files-compatible-with-32-bit-ones Fri Apr 7 15:22:25 2006 +++ 25-akpm/arch/um/drivers/cow_user.c Fri Apr 7 15:22:25 2006 @@ -75,7 +75,7 @@ struct cow_header_v3 { __u32 alignment; __u32 cow_format; char backing_file[PATH_LEN_V3]; -}; +} __attribute__((packed)); /* COW format definitions - for now, we have only the usual COW bitmap */ #define COW_BITMAP 0 _