Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2009 17:00:06 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 165322 for review
Message-ID:  <200906271700.n5RH06uG061918@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165322

Change 165322 by mav@mav_mavbook on 2009/06/27 16:59:08

	Limit XPT_DEV_MATCH request by 50 entries to fit again into DFLTPHYS
	of 64K.

Affected files ...

.. //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#9 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sbin/camcontrol/camcontrol.c#9 (text+ko) ====

@@ -321,7 +321,7 @@
 	ccb.ccb_h.target_lun = CAM_LUN_WILDCARD;
 
 	ccb.ccb_h.func_code = XPT_DEV_MATCH;
-	bufsize = sizeof(struct dev_match_result) * 100;
+	bufsize = sizeof(struct dev_match_result) * 50;
 	ccb.cdm.match_buf_len = bufsize;
 	ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
 	if (ccb.cdm.matches == NULL) {
@@ -340,7 +340,7 @@
 
 	/*
 	 * We do the ioctl multiple times if necessary, in case there are
-	 * more than 100 nodes in the EDT.
+	 * more than 50 nodes in the EDT.
 	 */
 	do {
 		if (ioctl(fd, CAMIOCOMMAND, &ccb) == -1) {



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