From owner-p4-projects@FreeBSD.ORG Sat Jul 4 19:24:00 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2787D1065673; Sat, 4 Jul 2009 19:24:00 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBBD3106564A for ; Sat, 4 Jul 2009 19:23:59 +0000 (UTC) (envelope-from mav@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CA7858FC0A for ; Sat, 4 Jul 2009 19:23:59 +0000 (UTC) (envelope-from mav@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n64JNxuB019059 for ; Sat, 4 Jul 2009 19:23:59 GMT (envelope-from mav@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n64JNx9J019057 for perforce@freebsd.org; Sat, 4 Jul 2009 19:23:59 GMT (envelope-from mav@freebsd.org) Date: Sat, 4 Jul 2009 19:23:59 GMT Message-Id: <200907041923.n64JNx9J019057@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mav@freebsd.org using -f From: Alexander Motin To: Perforce Change Reviews Cc: Subject: PERFORCE change 165608 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2009 19:24:00 -0000 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) {