file: increase minimum read buffer size to 4096 bytes
Some sysfs or proc files contain more than 128 byte of data, e.g. the /proc/filesystems or /proc/mounts files. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e2a7bc4c2f
commit
95f0973c34
1 changed files with 1 additions and 1 deletions
2
file.c
2
file.c
|
@ -38,7 +38,7 @@
|
||||||
#include <rpcd/plugin.h>
|
#include <rpcd/plugin.h>
|
||||||
|
|
||||||
/* limit of sys & proc files */
|
/* limit of sys & proc files */
|
||||||
#define RPC_FILE_MIN_SIZE (128)
|
#define RPC_FILE_MIN_SIZE (4096)
|
||||||
|
|
||||||
/* limit of regular files and command output data */
|
/* limit of regular files and command output data */
|
||||||
#define RPC_FILE_MAX_SIZE (4096 * 64)
|
#define RPC_FILE_MAX_SIZE (4096 * 64)
|
||||||
|
|
Loading…
Reference in a new issue