diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-30 03:05:27 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 10:08:13 -0500 |
commit | e3a8adeb51fbf5b5120457822a1a6db8e2c739cb (patch) | |
tree | 5295830bd79ced6c528f1c73df04283f5aa6407f /user/mdadm/falloc.patch | |
parent | 5c0023a20439a09214c4e56c592143c443aaa969 (diff) | |
download | packages-e3a8adeb51fbf5b5120457822a1a6db8e2c739cb.tar.gz packages-e3a8adeb51fbf5b5120457822a1a6db8e2c739cb.tar.bz2 packages-e3a8adeb51fbf5b5120457822a1a6db8e2c739cb.tar.xz packages-e3a8adeb51fbf5b5120457822a1a6db8e2c739cb.zip |
user/mdadm: Update to 4.3
Closes: #1183
Diffstat (limited to 'user/mdadm/falloc.patch')
-rw-r--r-- | user/mdadm/falloc.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/user/mdadm/falloc.patch b/user/mdadm/falloc.patch new file mode 100644 index 000000000..9f8d4ddd9 --- /dev/null +++ b/user/mdadm/falloc.patch @@ -0,0 +1,41 @@ +From 52bead95d2957437c691891fcdc49bd6afccdd49 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <fontaine.fabrice@gmail.com> +Date: Fri, 12 Apr 2024 18:45:13 +0200 +Subject: Create.c: fix uclibc build + +Define FALLOC_FL_ZERO_RANGE if needed as FALLOC_FL_ZERO_RANGE is only +defined for aarch64 on uclibc-ng resulting in the following or1k build +failure since commit 577fd10486d8d1472a6b559066f344ac30a3a391: + +Create.c: In function 'write_zeroes_fork': +Create.c:155:35: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function) + 155 | if (fallocate(fd, FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, + | ^~~~~~~~~~~~~~~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/0e04bcdb591ca5642053e1f7e31384f06581e989 + +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> +Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> +--- + Create.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Create.c b/Create.c +index 4397ff49..d94253b1 100644 +--- a/Create.c ++++ b/Create.c +@@ -32,6 +32,10 @@ + #include <sys/signalfd.h> + #include <sys/wait.h> + ++#ifndef FALLOC_FL_ZERO_RANGE ++#define FALLOC_FL_ZERO_RANGE 16 ++#endif ++ + static int round_size_and_verify(unsigned long long *size, int chunk) + { + if (*size == 0) +-- +cgit 1.2.3-korg + |