Date: Sat, 25 Aug 2012 23:01:58 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239693 - head/sys/dev/ahci Message-ID: <201208252301.q7PN1wQR010227@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sat Aug 25 23:01:57 2012 New Revision: 239693 URL: http://svn.freebsd.org/changeset/base/239693 Log: Return "locally assigned" Enclosure Logical Identifier instead of 8 zero bytes. Zeroes there are incorrect and tend to cause false device ID matches. Modified: head/sys/dev/ahci/ahciem.c Modified: head/sys/dev/ahci/ahciem.c ============================================================================== --- head/sys/dev/ahci/ahciem.c Sat Aug 25 22:45:26 2012 (r239692) +++ head/sys/dev/ahci/ahciem.c Sat Aug 25 23:01:57 2012 (r239693) @@ -380,6 +380,8 @@ ahci_em_emulate_ses_on_led(device_t dev, ccb->ataio.cmd.sector_count >= 16) { bzero(buf, ccb->ataio.dxfer_len); buf[0] = 64; /* Valid bytes. */ + buf[2] = 0x30; /* NAA Locally Assigned. */ + strncpy(&buf[3], device_get_nameunit(dev), 7); strncpy(&buf[10], "AHCI ", SID_VENDOR_SIZE); strncpy(&buf[18], "SGPIO Enclosure ", SID_PRODUCT_SIZE); strncpy(&buf[34], "1.00", SID_REVISION_SIZE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208252301.q7PN1wQR010227>