summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-03-20 17:37:41 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:50 +0000
commite2700768308c87db4bde04f6a1026d468489ddf4 (patch)
tree8cc83851c38d99ad5a28878a3d03169201b59751 /meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
parentb3f83a21931168d089a54e96087c093c0bedab89 (diff)
downloadpoky-e2700768308c87db4bde04f6a1026d468489ddf4.tar.gz
genext2fs: remove it
Remove genext2fs since we don't use it anymore, it can't support ext4 well, either. We have used "mke2fs -d" to instead of it. [YOCTO #6013] (From OE-Core rev: ff5666bc460520aef6105e117d5431c05fd9f55b) Signed-off-by: Robert Yang <liezhi.yang@windriver.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.patch37
1 files changed, 0 insertions, 37 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
deleted file mode 100644
index 05b095edf0..0000000000
--- a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/fix-nbblocks-cast.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1
2This patch fixes up the computation of nbinodes which would go
3negative due to an int overflow issue when nbblocks > 2Meg for
4a 2Gig or greater filesystem.
5
6The computation is now done as a float equation, since both nbblocks
7and bytes_per_inode are no floats, and then cast to int by assignment.
8
9int tmp_nbinodes = nbblocks * BLOCKSIZE / bytes_per_inode;
10
11Upstream-Status: Submitted
12Signed-off-by: Saul Wold <sgw@linux.intel.com>
13
14Rebased by Dexuan Cui <dexuan.cui@intel.com>
15
16Index: genext2fs-1.4.1/genext2fs.c
17===================================================================
18--- a/genext2fs.c 2012-03-29 00:07:20.308856017 +0800
19+++ b/genext2fs.c 2012-03-29 00:09:06.848856005 +0800
20@@ -3041,7 +3041,7 @@
21 int
22 main(int argc, char **argv)
23 {
24- int nbblocks = -1;
25+ float nbblocks = -1;
26 int nbinodes = -1;
27 int nbresrvd = -1;
28 float bytes_per_inode = -1;
29@@ -3203,7 +3203,7 @@
30 }
31 if(fs_timestamp == -1)
32 fs_timestamp = time(NULL);
33- fs = init_fs(nbblocks, nbinodes, nbresrvd, holes, fs_timestamp,
34+ fs = init_fs((int)nbblocks, nbinodes, nbresrvd, holes, fs_timestamp,
35 bigendian, fsout);
36 }
37 if (volumelabel != NULL)