Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2017 04:21:59 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327054 - head/lib/libdevinfo
Message-ID:  <201712210421.vBL4Lxw0019861@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712210421.vBL4Lxw0019861>