diff options
author | avg <avg@FreeBSD.org> | 2012-10-06 21:42:07 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-10-06 21:42:07 +0000 |
commit | 562e7d7aa0e0f73154a53f5d449bdfa0d3b83416 (patch) | |
tree | 6074a8406e83b1cbddd8ea1501125225c7056274 /sys/cam | |
parent | c04046d195fa77ad0bccdcb041131184b1255eee (diff) | |
download | FreeBSD-src-562e7d7aa0e0f73154a53f5d449bdfa0d3b83416.zip FreeBSD-src-562e7d7aa0e0f73154a53f5d449bdfa0d3b83416.tar.gz |
ata_da: set disk::d_ident from serial number
MFC after: 10 days
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ata/ata_da.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c index 08c756e..92ed0c6 100644 --- a/sys/cam/ata/ata_da.c +++ b/sys/cam/ata/ata_da.c @@ -1064,6 +1064,8 @@ adaregister(struct cam_periph *periph, void *arg) softc->disk->d_flags |= DISKFLAG_CANDELETE; strlcpy(softc->disk->d_descr, cgd->ident_data.model, MIN(sizeof(softc->disk->d_descr), sizeof(cgd->ident_data.model))); + strlcpy(softc->disk->d_ident, cgd->ident_data.serial, + MIN(sizeof(softc->disk->d_ident), sizeof(cgd->ident_data.serial))); softc->disk->d_hba_vendor = cpi.hba_vendor; softc->disk->d_hba_device = cpi.hba_device; softc->disk->d_hba_subvendor = cpi.hba_subvendor; |