Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd1233
)
e2image: Use open64() so that "e2image -I" works on image files > 2GB
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 13 Mar 2008 05:03:28 +0000
(
01:03
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 13 Mar 2008 05:03:28 +0000
(
01:03
-0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c
patch
|
blob
|
history
diff --git
a/misc/e2image.c
b/misc/e2image.c
index
4313cc0
..
e10554e
100644
(file)
--- 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);