From e2700768308c87db4bde04f6a1026d468489ddf4 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Thu, 20 Mar 2014 17:37:41 +0800 Subject: 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 Signed-off-by: Richard Purdie --- .../0017-Fix-file-same-comparison.patch | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch (limited to 'meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch') diff --git a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch b/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch deleted file mode 100644 index 40a7807b0d..0000000000 --- a/meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch +++ /dev/null @@ -1,30 +0,0 @@ -Upstream-Status: inappropriate - -From 33c92a0b663d16d2260b391d39aa745acd4b360e Mon Sep 17 00:00:00 2001 -From: Corey Minyard -Date: Tue, 7 Jun 2011 07:23:23 -0500 -Subject: [PATCH 17/19] Fix "file same" comparison - -It's not enough to check the inode, you also have to check the device -to make sure a file is the same. ---- - genext2fs.c | 3 ++- - 1 files changed, 2 insertions(+), 1 deletions(-) - -diff --git a/genext2fs.c b/genext2fs.c -index fc7fe5f..485393c 100644 ---- a/genext2fs.c -+++ b/genext2fs.c -@@ -2359,7 +2359,8 @@ alloc_fs(int swapit, char *fname, uint32 nbblocks, FILE *srcfile) - perror_msg_and_die("fstat srcfile"); - if (stat(fname, &dststat)) - perror_msg_and_die("stat-ing %s", fname); -- if (srcstat.st_ino == dststat.st_ino) { -+ if (srcstat.st_ino == dststat.st_ino -+ && srcstat.st_dev == dststat.st_dev) { - // source and destination are the same file, don't - // truncate or copy, just use the file. - fs->f = fopen(fname, "r+b"); --- -1.7.4.1 - -- cgit v1.2.3-54-g00ecf