PERFORCE change 165322 for review
Alexander Motin
mav at FreeBSD.org
Sat Jun 27 17:00:08 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165322
Change 165322 by mav at 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) {
More information about the p4-projects
mailing list