summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-03-15 14:12:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-21 15:33:03 +0000
commita731d22551f576f84c43d5d88f56113c4652c317 (patch)
treeb0c4c623e07e5e0640f1aaeb55dbb67d874938e2 /meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch
parent35ada8fe03f14cff78ec6f4e1277c5840e08b334 (diff)
downloadpoky-a731d22551f576f84c43d5d88f56113c4652c317.tar.gz
e2fsprogs: upgrade to 1.42.1
Includes minor tweaks to the formatting of some patch headers and the addition of a SOB line where needed. (From OE-Core rev: bb9af542bc69f417d414d92ebf46a9412944c1e1) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch')
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch
new file mode 100644
index 0000000000..d074c15cfd
--- /dev/null
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.1/fallocate.patch
@@ -0,0 +1,22 @@
1We assume that fallocate is supported somehow
2but we need to check if we have fallocate()
3this problem shows up on uclibc systems since
4uclibc does not have fallocate() implemented
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10Index: e2fsprogs-1.42/lib/ext2fs/unix_io.c
11===================================================================
12--- e2fsprogs-1.42.orig/lib/ext2fs/unix_io.c 2012-01-17 17:24:34.290780625 -0800
13+++ e2fsprogs-1.42/lib/ext2fs/unix_io.c 2012-01-17 17:25:37.338783680 -0800
14@@ -895,7 +895,7 @@
15 goto unimplemented;
16 #endif
17 } else {
18-#ifdef FALLOC_FL_PUNCH_HOLE
19+#if defined FALLOC_FL_PUNCH_HOLE && defined HAVE_FALLOCATE
20 /*
21 * If we are not on block device, try to use punch hole
22 * to reclaim free space.