Skip to content

Commit

Permalink
[PATCH] uml: make 64-bit COW files compatible with 32-bit ones
Browse files Browse the repository at this point in the history
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 <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Apr 11, 2006
1 parent 60baa15 commit cda402b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/cow_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cda402b

Please sign in to comment.