svn commit: r327054 - head/lib/libdevinfo
Warner Losh
imp at FreeBSD.org
Thu Dec 21 04:22:00 UTC 2017
Author: imp
Date: Thu Dec 21 04:21:59 2017
New Revision: 327054
URL: https://svnweb.freebsd.org/changeset/base/327054
Log:
Bump number that's an insane number of devices from 1,000 to 10,000. I
have access to machines that are pushing 400 devices. When 1,000 was
selected, it was rare to get even 40 or 50 devices. Bump the limit by
10x to keep up with the times.
Sponsored by: Netflix
Modified:
head/lib/libdevinfo/devinfo.c
Modified: head/lib/libdevinfo/devinfo.c
==============================================================================
--- head/lib/libdevinfo/devinfo.c Thu Dec 21 01:27:32 2017 (r327053)
+++ head/lib/libdevinfo/devinfo.c Thu Dec 21 04:21:59 2017 (r327054)
@@ -204,7 +204,7 @@ devinfo_init_devices(int generation)
* Stop after a fairly insane number to avoid death in the case
* of kernel corruption.
*/
- for (dev_idx = 0; dev_idx < 1000; dev_idx++) {
+ for (dev_idx = 0; dev_idx < 10000; dev_idx++) {
/*
* Get the device information.
More information about the svn-src-all
mailing list