diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-03-20 17:37:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-21 12:05:28 +0000 |
commit | ff5666bc460520aef6105e117d5431c05fd9f55b (patch) | |
tree | 56d2cde6609aa3c97d5247eda073b8a7a059f36f /meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0019-Make-sure-superblock-is-clear-on-allocation.patch | |
parent | 45779941cec4f53a8ca7f8350402e5d9e866c916 (diff) | |
download | openembedded-core-contrib-ff5666bc460520aef6105e117d5431c05fd9f55b.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]
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.patch | 42 |
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 @@ -Upstream-Status: inappropriate - -From a263cdabad01ba99581b26d1753cd459f2669413 Mon Sep 17 00:00:00 2001 -From: Corey Minyard <cminyard@mvista.com> -Date: Tue, 7 Jun 2011 09:14:19 -0500 -Subject: [PATCH 19/19] Make sure superblock is clear on allocation - -Use calloc, not malloc, so the allocated superblock is zero-ed. Also, -get rid of some unnecessary casts. ---- - genext2fs.c | 6 +++--- - 1 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/genext2fs.c b/genext2fs.c -index 28ba94f..fab90be 100644 ---- a/genext2fs.c -+++ b/genext2fs.c -@@ -2447,10 +2447,10 @@ init_fs(int nbblocks, int nbinodes, int nbresrvd, int holes, - fs->nheadblocks = (((nbgroups * sizeof(groupdescriptor)) - + sizeof(superblock) + (BLOCKSIZE - 1)) - / BLOCKSIZE); -- fs->sb = (superblock *) malloc(BLOCKSIZE); -+ fs->sb = calloc(1, BLOCKSIZE); - if (!fs->sb) - error_msg_and_die("error allocating header memory"); -- fs->gd = (groupdescriptor *) calloc(fs->nheadblocks - 1, BLOCKSIZE); -+ fs->gd = calloc(fs->nheadblocks - 1, BLOCKSIZE); - if (!fs->gd) - error_msg_and_die("error allocating header memory"); - -@@ -2595,7 +2595,7 @@ load_fs(FILE * fh, int swapit, char *fname) - - /* Read and check the superblock, then read the superblock - * and all the group descriptors */ -- fs->sb = malloc(BLOCKSIZE); -+ fs->sb = calloc(1, BLOCKSIZE); - if (!fs->sb) - error_msg_and_die("error allocating header memory"); - if (fseek(fs->f, BLOCKSIZE, SEEK_SET)) --- -1.7.4.1 - |