increase kernel uevent buffer size

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2006-01-24 12:12:07 +01:00
parent f61f78a76e
commit 7d1e179f86
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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,