[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1205385147-12855-4-git-send-email-tytso@mit.edu>
Date: Thu, 13 Mar 2008 01:12:27 -0400
From: Theodore Ts'o <tytso@....edu>
To: bas@....tetra.nl
Cc: linux-ext4@...r.kernel.org, Theodore Ts'o <tytso@....edu>
Subject: [E2FSPROGS PATCH 4/4] e2image: Use open64() so that "e2image -I" works on image files > 2GB
Signed-off-by: "Theodore Ts'o" <tytso@....edu>
---
misc/e2image.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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.5.4.1.144.gdfee-dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists