Date: Sat, 4 Jul 2009 19:23:59 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 165608 for review Message-ID: <200907041923.n64JNx9J019057@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165608 Change 165608 by mav@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907041923.n64JNx9J019057>