From owner-svn-src-head@FreeBSD.ORG Sun Jul 6 06:12:30 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D1BD3FD; Sun, 6 Jul 2014 06:12:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AC5D246F; Sun, 6 Jul 2014 06:12:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s666CUv9096898; Sun, 6 Jul 2014 06:12:30 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s666CUYs096897; Sun, 6 Jul 2014 06:12:30 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201407060612.s666CUYs096897@svn.freebsd.org> From: Alexander Motin Date: Sun, 6 Jul 2014 06:12:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268306 - head/sys/cam/ctl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 06:12:30 -0000 Author: mav Date: Sun Jul 6 06:12:29 2014 New Revision: 268306 URL: http://svnweb.freebsd.org/changeset/base/268306 Log: Relax some bit checks for INQUIRY command. FreeBSD still tries to put LUN number in second byte until it get device protocol version, even that it was obsoleted about 20 years ago. Modified: head/sys/cam/ctl/ctl_cmd_table.c Modified: head/sys/cam/ctl/ctl_cmd_table.c ============================================================================== --- head/sys/cam/ctl/ctl_cmd_table.c Sun Jul 6 03:31:01 2014 (r268305) +++ head/sys/cam/ctl/ctl_cmd_table.c Sun Jul 6 06:12:29 2014 (r268306) @@ -410,7 +410,7 @@ const struct ctl_cmd_entry ctl_cmd_table CTL_CMD_FLAG_OK_ON_SECONDARY | CTL_FLAG_DATA_IN | CTL_CMD_FLAG_ALLOW_ON_PR_RESV, - CTL_LUN_PAT_NONE, 6, {0x01, 0xff, 0xff, 0xff, 0x07}}, + CTL_LUN_PAT_NONE, 6, {0xe1, 0xff, 0xff, 0xff, 0x07}}, /* 13 */ {NULL, CTL_SERIDX_INVLD, CTL_CMD_FLAG_NONE, CTL_LUN_PAT_NONE},