diff options
author | mav <mav@FreeBSD.org> | 2012-08-25 23:01:57 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-08-25 23:01:57 +0000 |
commit | a5e624d394c2841c936f6970a984371da27e257c (patch) | |
tree | f35ecb0a805a9bbea6708843a9e91d589303f8ec /sys/dev | |
parent | e08ff303c902f834a35dabf8400b41d80d628051 (diff) | |
download | FreeBSD-src-a5e624d394c2841c936f6970a984371da27e257c.zip FreeBSD-src-a5e624d394c2841c936f6970a984371da27e257c.tar.gz |
Return "locally assigned" Enclosure Logical Identifier instead of 8 zero
bytes. Zeroes there are incorrect and tend to cause false device ID matches.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ahci/ahciem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ahci/ahciem.c b/sys/dev/ahci/ahciem.c index 11e7230..4e73d02 100644 --- a/sys/dev/ahci/ahciem.c +++ b/sys/dev/ahci/ahciem.c @@ -380,6 +380,8 @@ ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) 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); |