summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2012-03-29 00:35:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-02 04:31:48 +0100
commit79c806cb404c2d85aeec45b40ea6adbeae9f6346 (patch)
tree5627bb72a24373b931e6a3d4190335bc904cfd88 /meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
parent84b7541abc2d7e59c22891219fce97d320d3bb33 (diff)
downloadpoky-79c806cb404c2d85aeec45b40ea6adbeae9f6346.tar.gz
genext2fs: support large files and filesystems without using large amounts of memory
update_to_1.95.patch was generated by making a diff bewteen the 1.4.1 release and the latest 1.9.5 version in the cvs repo: http://genext2fs.cvs.sourceforge.net/viewvc/genext2fs/genext2fs/genext2fs.c?revision=1.95 The patches 0001-0019 come from mailing list of genext2fs-devel http://sourceforge.net/mailarchive/forum.php?forum_name=genext2fs-devel&max_rows=100&style=flat&viewmonth=201106 (From OE-Core rev: 8f17e499cf91191727c8767e839738cb39c21655) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch')
-rw-r--r--meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch18
1 files changed, 10 insertions, 8 deletions
diff --git a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch b/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
index 3fd15e058b..05b095edf0 100644
--- a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
+++ b/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
@@ -11,11 +11,13 @@ int tmp_nbinodes = nbblocks * BLOCKSIZE / bytes_per_inode;
11Upstream-Status: Submitted 11Upstream-Status: Submitted
12Signed-off-by: Saul Wold <sgw@linux.intel.com> 12Signed-off-by: Saul Wold <sgw@linux.intel.com>
13 13
14Rebased by Dexuan Cui <dexuan.cui@intel.com>
15
14Index: genext2fs-1.4.1/genext2fs.c 16Index: genext2fs-1.4.1/genext2fs.c
15=================================================================== 17===================================================================
16--- genext2fs-1.4.1.orig/genext2fs.c 18--- a/genext2fs.c 2012-03-29 00:07:20.308856017 +0800
17+++ genext2fs-1.4.1/genext2fs.c 19+++ b/genext2fs.c 2012-03-29 00:09:06.848856005 +0800
18@@ -2447,7 +2447,7 @@ extern int optind, opterr, optopt; 20@@ -3041,7 +3041,7 @@
19 int 21 int
20 main(int argc, char **argv) 22 main(int argc, char **argv)
21 { 23 {
@@ -24,12 +26,12 @@ Index: genext2fs-1.4.1/genext2fs.c
24 int nbinodes = -1; 26 int nbinodes = -1;
25 int nbresrvd = -1; 27 int nbresrvd = -1;
26 float bytes_per_inode = -1; 28 float bytes_per_inode = -1;
27@@ -2609,7 +2609,7 @@ main(int argc, char **argv) 29@@ -3203,7 +3203,7 @@
28 } 30 }
29 if(fs_timestamp == -1) 31 if(fs_timestamp == -1)
30 fs_timestamp = time(NULL); 32 fs_timestamp = time(NULL);
31- fs = init_fs(nbblocks, nbinodes, nbresrvd, holes, fs_timestamp); 33- fs = init_fs(nbblocks, nbinodes, nbresrvd, holes, fs_timestamp,
32+ fs = init_fs((int)nbblocks, nbinodes, nbresrvd, holes, fs_timestamp); 34+ fs = init_fs((int)nbblocks, nbinodes, nbresrvd, holes, fs_timestamp,
35 bigendian, fsout);
33 } 36 }
34 37 if (volumelabel != NULL)
35 populate_fs(fs, dopt, didx, squash_uids, squash_perms, fs_timestamp, NULL);