From 9fbec969a2a9d703373cf8a7e9a95cf594caed72 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 13 Mar 2008 01:03:28 -0400 Subject: [PATCH] e2image: Use open64() so that "e2image -I" works on image files > 2GB Signed-off-by: "Theodore Ts'o" --- misc/e2image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/e2image.c b/misc/e2image.c index 4313cc0..e10554e 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -579,8 +579,11 @@ static void install_image(char *device, char *image_fn, int raw_flag) exit(1); } - +#ifdef HAVE_OPEN64 + fd = open64(image_fn, O_RDONLY); +#else fd = open(image_fn, O_RDONLY); +#endif if (fd < 0) { perror(image_fn); exit(1); -- 1.8.3.1