diff options
author | Scott James Remnant <scott@ubuntu.com> | 2010-02-17 15:27:36 +0000 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2010-02-17 15:27:36 +0000 |
commit | 0fe3c26eab97c4ee381918e6925a6cd798be5f39 (patch) | |
tree | b0ab67e7d84ff9ffcfd91a46fc8376c47c2e886f | |
parent | a571c23e954cb88cdd5faa28593b19bd7c340130 (diff) |
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 <scott@ubuntu.com>
-rw-r--r-- | udev/udevadm-monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 00b130dafe..ea4b7dccbe 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); |