From owner-freebsd-current@FreeBSD.ORG Tue Dec 10 21:09:33 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 540843E7; Tue, 10 Dec 2013 21:09:33 +0000 (UTC) Received: from i3mail.icecube.wisc.edu (i3mail.icecube.wisc.edu [128.104.255.23]) by mx1.freebsd.org (Postfix) with ESMTP id 2751910B7; Tue, 10 Dec 2013 21:09:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by i3mail.icecube.wisc.edu (Postfix) with ESMTP id D980638240; Tue, 10 Dec 2013 15:09:31 -0600 (CST) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from i3mail.icecube.wisc.edu ([127.0.0.1]) by localhost (i3mail.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id gN79nNLMPvt3; Tue, 10 Dec 2013 15:09:31 -0600 (CST) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by i3mail.icecube.wisc.edu (Postfix) with ESMTPSA id C943038228; Tue, 10 Dec 2013 15:09:31 -0600 (CST) Message-ID: <52A7830B.2090803@freebsd.org> Date: Tue, 10 Dec 2013 15:09:31 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "freebsd-current@freebsd.org" , FreeBSD SCSI Subject: [CAM] Widening lun_id_t to 64-bits Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 21:09:33 -0000 Modern SCSI hardware often uses 64-bit logical units (LUNs). The patch found at http://people.freebsd.org/~nwhitehorn/lun64.diff widens the type of lun_id_t to 64 bits, bumps CAM_VERSION, and begins exposing these to drivers that are marked as supporting extended LUNs. No behavior is changed except that peripheral with very long LUNs that didn't work before will start working. Binary compatibility with old code is also kept. There is, however, a chance that some 3rd party software might be unhappy about the type widening, so I'd appreciate any testing results. Barring any issues, I will commit this on Friday. -Nathan