From: Scott James Remnant Date: Wed, 17 Feb 2010 15:27:36 +0000 (+0000) Subject: udevadm monitor: increase netlink buffer size X-Git-Tag: 174~611 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe3c26eab97c4ee381918e6925a6cd798be5f39;p=systemd 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 --- 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);