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:50 +0000 |
commit | e2700768308c87db4bde04f6a1026d468489ddf4 (patch) | |
tree | 8cc83851c38d99ad5a28878a3d03169201b59751 /meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch | |
parent | b3f83a21931168d089a54e96087c093c0bedab89 (diff) | |
download | poky-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/0017-Fix-file-same-comparison.patch')
-rw-r--r-- | meta/recipes-devtools/genext2fs/genext2fs-1.4.1/0017-Fix-file-same-comparison.patch | 30 |
1 files changed, 0 insertions, 30 deletions
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 @@ | |||
1 | Upstream-Status: inappropriate | ||
2 | |||
3 | From 33c92a0b663d16d2260b391d39aa745acd4b360e Mon Sep 17 00:00:00 2001 | ||
4 | From: Corey Minyard <cminyard@mvista.com> | ||
5 | Date: Tue, 7 Jun 2011 07:23:23 -0500 | ||
6 | Subject: [PATCH 17/19] Fix "file same" comparison | ||
7 | |||
8 | It's not enough to check the inode, you also have to check the device | ||
9 | to make sure a file is the same. | ||
10 | --- | ||
11 | genext2fs.c | 3 ++- | ||
12 | 1 files changed, 2 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/genext2fs.c b/genext2fs.c | ||
15 | index fc7fe5f..485393c 100644 | ||
16 | --- a/genext2fs.c | ||
17 | +++ b/genext2fs.c | ||
18 | @@ -2359,7 +2359,8 @@ alloc_fs(int swapit, char *fname, uint32 nbblocks, FILE *srcfile) | ||
19 | perror_msg_and_die("fstat srcfile"); | ||
20 | if (stat(fname, &dststat)) | ||
21 | perror_msg_and_die("stat-ing %s", fname); | ||
22 | - if (srcstat.st_ino == dststat.st_ino) { | ||
23 | + if (srcstat.st_ino == dststat.st_ino | ||
24 | + && srcstat.st_dev == dststat.st_dev) { | ||
25 | // source and destination are the same file, don't | ||
26 | // truncate or copy, just use the file. | ||
27 | fs->f = fopen(fname, "r+b"); | ||
28 | -- | ||
29 | 1.7.4.1 | ||
30 | |||