summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.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/0019-Make-sure-superblock-is-clear-on-allocation.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/0019-Make-sure-superblock-is-clear-on-allocation.patch')
-rw-r--r--meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.patch b/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.patch
deleted file mode 100644
index a75a8128cc..0000000000
--- a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1Upstream-Status: inappropriate
2
3From a263cdabad01ba99581b26d1753cd459f2669413 Mon Sep 17 00:00:00 2001
4From: Corey Minyard <cminyard@mvista.com>
5Date: Tue, 7 Jun 2011 09:14:19 -0500
6Subject: [PATCH 19/19] Make sure superblock is clear on allocation
7
8Use calloc, not malloc, so the allocated superblock is zero-ed. Also,
9get rid of some unnecessary casts.
10---
11 genext2fs.c | 6 +++---
12 1 files changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/genext2fs.c b/genext2fs.c
15index 28ba94f..fab90be 100644
16--- a/genext2fs.c
17+++ b/genext2fs.c
18@@ -2447,10 +2447,10 @@ init_fs(int nbblocks, int nbinodes, int nbresrvd, int holes,
19 fs->nheadblocks = (((nbgroups * sizeof(groupdescriptor))
20 + sizeof(superblock) + (BLOCKSIZE - 1))
21 / BLOCKSIZE);
22- fs->sb = (superblock *) malloc(BLOCKSIZE);
23+ fs->sb = calloc(1, BLOCKSIZE);
24 if (!fs->sb)
25 error_msg_and_die("error allocating header memory");
26- fs->gd = (groupdescriptor *) calloc(fs->nheadblocks - 1, BLOCKSIZE);
27+ fs->gd = calloc(fs->nheadblocks - 1, BLOCKSIZE);
28 if (!fs->gd)
29 error_msg_and_die("error allocating header memory");
30
31@@ -2595,7 +2595,7 @@ load_fs(FILE * fh, int swapit, char *fname)
32
33 /* Read and check the superblock, then read the superblock
34 * and all the group descriptors */
35- fs->sb = malloc(BLOCKSIZE);
36+ fs->sb = calloc(1, BLOCKSIZE);
37 if (!fs->sb)
38 error_msg_and_die("error allocating header memory");
39 if (fseek(fs->f, BLOCKSIZE, SEEK_SET))
40--
411.7.4.1
42