summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-24 12:12:07 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-24 12:12:07 +0100
commit7d1e179f86aabeb5c206bf9b5bcac52235a9afbf (patch)
tree560ec199dc9ead36ca24843f12eff3eee3252b85
parentf61f78a76e424e4ec8197bc52e08d19b2ce07236 (diff)
increase kernel uevent buffer size
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udevd.c2
-rw-r--r--udevd.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/udevd.c b/udevd.c
index c45d3a4cd0..ffa81bbb75 100644
--- a/udevd.c
+++ b/udevd.c
@@ -621,7 +621,7 @@ static struct uevent_msg *get_netlink_msg(void)
struct uevent_msg *msg;
int bufpos;
ssize_t size;
- static char buffer[UEVENT_BUFFER_SIZE + 512];
+ static char buffer[UEVENT_BUFFER_SIZE+512];
char *pos;
size = recv(uevent_netlink_sock, &buffer, sizeof(buffer), 0);
diff --git a/udevd.h b/udevd.h
index c0a32e97ed..242c0b6907 100644
--- a/udevd.h
+++ b/udevd.h
@@ -38,8 +38,8 @@
#define UDEVD_MAX_CHILDS_RUNNING 16
/* environment buffer, should match the kernel's size in lib/kobject_uevent.h */
-#define UEVENT_BUFFER_SIZE 1024
-#define UEVENT_NUM_ENVP 32
+#define UEVENT_BUFFER_SIZE 2048
+#define UEVENT_NUM_ENVP 64
enum udevd_msg_type {
UDEVD_UNKNOWN,