diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch new file mode 100644 index 0000000000..d074c15cfd --- /dev/null +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/fallocate.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | We assume that fallocate is supported somehow | ||
2 | but we need to check if we have fallocate() | ||
3 | this problem shows up on uclibc systems since | ||
4 | uclibc does not have fallocate() implemented | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | |||
10 | Index: 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. | ||