From 0fe3c26eab97c4ee381918e6925a6cd798be5f39 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Wed, 17 Feb 2010 15:27:36 +0000 Subject: [PATCH] udevadm monitor: increase netlink buffer size A common use (e.g. in Ubuntu) for udevadm monitor is to log the events received by udev during boot; events can be lost of the buffer size isn't increased as udevd does. Signed-off-by: Scott James Remnant --- udev/udevadm-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 00b130da..ea4b7dcc 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -158,6 +158,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) rc = 1; goto out; } + udev_monitor_set_receive_buffer_size(udev_monitor, 128*1024*1024); udev_list_entry_foreach(entry, udev_list_get_entry(&subsystem_match_list)) { const char *subsys = udev_list_entry_get_name(entry); @@ -183,6 +184,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) rc = 3; goto out; } + udev_monitor_set_receive_buffer_size(udev, 128*1024*1024); udev_list_entry_foreach(entry, udev_list_get_entry(&subsystem_match_list)) { const char *subsys = udev_list_entry_get_name(entry); -- 2.39.5