summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/e2fsprogs
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs')
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch37
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch
new file mode 100644
index 0000000000..9b467c338c
--- /dev/null
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch
@@ -0,0 +1,37 @@
1From e4ffd6fe975888d306b5f700ba54af18b59f6759 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Thu, 20 Mar 2014 11:10:21 +0800
4Subject: [PATCH] misc/mke2fs.c: return error when failed to populate filesystem
5
6We need return retval when "mke2fs -d" failed, otherwise the "$?" would
7be 0 which is misleading.
8
9Upstream-Status Submitted
10
11Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
12---
13 misc/mke2fs.c | 7 ++++---
14 1 file changed, 4 insertions(+), 3 deletions(-)
15
16diff --git a/misc/mke2fs.c b/misc/mke2fs.c
17index a63f0b7..846190e 100644
18--- a/misc/mke2fs.c
19+++ b/misc/mke2fs.c
20@@ -2745,10 +2745,11 @@ no_journal:
21 current_fs = fs;
22 root = EXT2_ROOT_INO;
23 retval = populate_fs(root, root_dir);
24- if (retval)
25+ if (retval) {
26 fprintf(stderr, "%s",
27- _("\nError while populating file system"));
28- else if (!quiet)
29+ _("\nError while populating file system\n"));
30+ return retval;
31+ } else if (!quiet)
32 printf("%s", _("done\n"));
33 }
34
35--
361.8.3.1
37
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb
index 4114fd21bc..75a58b5d45 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb
@@ -17,6 +17,7 @@ SRC_URI += "file://acinclude.m4 \
17 file://0010-debugfs-use-the-functions-in-misc-create_inode.c.patch \ 17 file://0010-debugfs-use-the-functions-in-misc-create_inode.c.patch \
18 file://0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch \ 18 file://0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch \
19 file://0001-e2fsprogs-fix-cross-compilation-problem.patch \ 19 file://0001-e2fsprogs-fix-cross-compilation-problem.patch \
20 file://misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch \
20" 21"
21 22
22SRC_URI[md5sum] = "3f8e41e63b432ba114b33f58674563f7" 23SRC_URI[md5sum] = "3f8e41e63b432ba114b33f58674563f7"