From owner-freebsd-scsi@FreeBSD.ORG Thu May 10 15:07:24 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A236716A405; Thu, 10 May 2007 15:07:24 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 5C14813C45B; Thu, 10 May 2007 15:07:24 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l4AF7KeG017785; Thu, 10 May 2007 09:07:20 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <46433521.5080800@samsco.org> Date: Thu, 10 May 2007 09:07:13 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20070505182849.GC16398@garage.freebsd.pl> In-Reply-To: <20070505182849.GC16398@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Thu, 10 May 2007 09:07:20 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: SCSI disk serial number. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 15:07:24 -0000 Pawel Jakub Dawidek wrote: > Hi. > > Can someone confirm this is the right thing to do to get SCSI disk > serial number? > > http://people.freebsd.org/~pjd/patches/scsi_da_ident.patch > > Thanks in advance! > > Can someone help me with other drivers? > The serial number that CAM obtains comes from a page 0x80 inquiry. It is known to be rather unreliable in its uniqueness. The SCSI spec allows the target to return a non-zero length of all 0x20 characters if it so desires. Most applications that need a unique drive identifier try to obtain the WWN from page 0x83 instead, and fall back to hueristics with page 0x80 if that fails. Scott