PERFORCE change 165608 for review

Alexander Motin mav at FreeBSD.org
Sat Jul 4 19:24:00 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=165608

Change 165608 by mav at mav_mavbook on 2009/07/04 19:23:49

	Restore original XPT_DEV_MATCH request size.
	Kernel is now able to handle it.

Affected files ...

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

Differences ...

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

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


More information about the p4-projects mailing list