summary refs log tree commit diff
path: root/pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-09-24 23:35:01 -0500
committerWill Dietz <w@wdtz.org>2018-09-24 23:59:02 -0500
commit5c217591fda32180f688207f78caf73daf65b4df (patch)
tree32386ab3d62554ec7de2c80009bc1769031256a5 /pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch
parented5347278f396110e0e1c4131a07dfd8d02c5a98 (diff)
downloadnixlib-5c217591fda32180f688207f78caf73daf65b4df.tar
nixlib-5c217591fda32180f688207f78caf73daf65b4df.tar.gz
nixlib-5c217591fda32180f688207f78caf73daf65b4df.tar.bz2
nixlib-5c217591fda32180f688207f78caf73daf65b4df.tar.lz
nixlib-5c217591fda32180f688207f78caf73daf65b4df.tar.xz
nixlib-5c217591fda32180f688207f78caf73daf65b4df.tar.zst
nixlib-5c217591fda32180f688207f78caf73daf65b4df.zip
musl: pick upstream patches for name_to_handle_at support
Diffstat (limited to 'pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch')
-rw-r--r--pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch b/pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch
new file mode 100644
index 000000000000..aa00b4619f86
--- /dev/null
+++ b/pkgs/os-specific/linux/musl/max-handle-sz-for-name-to-handle-at.patch
@@ -0,0 +1,26 @@
+From 7d7f44253f2d8cfd0a7adf9f918d88aa24d4e012 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 13 Sep 2018 07:00:05 -0700
+Subject: [PATCH] define MAX_HANDLE_SZ for use with name_to_handle_at
+
+MAX_HANDLE_SZ is described in name_to_handle_at() to contain maximum
+expected size for a file handle
+---
+ include/fcntl.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/fcntl.h b/include/fcntl.h
+index 99b21759..4d91338b 100644
+--- a/include/fcntl.h
++++ b/include/fcntl.h
+@@ -166,6 +166,7 @@ struct f_owner_ex {
+ };
+ #define FALLOC_FL_KEEP_SIZE 1
+ #define FALLOC_FL_PUNCH_HOLE 2
++#define MAX_HANDLE_SZ 128
+ #define SYNC_FILE_RANGE_WAIT_BEFORE 1
+ #define SYNC_FILE_RANGE_WRITE 2
+ #define SYNC_FILE_RANGE_WAIT_AFTER 4
+-- 
+2.19.0
+