home: hub: mkinitfs

Download patch

ref: 9547c279a3a09e8b0d466798302ae03c376773a8
parent: 584d06ecb61c591de39753ef4c6d25c13eb794d4
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon Jul 4 07:07:15 CDT 2022

nlplug-findfs: increase socket buffer

Use bigger socket buffer to avoid "No buffer space available" error.

ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/12325#note_244883

--- a/nlplug-findfs/nlplug-findfs.c
+++ b/nlplug-findfs/nlplug-findfs.c
@@ -419,7 +419,7 @@
 
 	/* kernel will not create events bigger than 16kb, but we need
 	   buffer up all events during coldplug */
-	slen = 512*1024;
+	slen = 1024*1024;
 	if (setsockopt(fd, SOL_SOCKET, SO_RCVBUFFORCE, &slen,
 				sizeof(slen)) < 0) {
 		err(1, "setsockopt");