svn commit: r241640 - stable/9/sys/cam/ata

Andriy Gapon avg at FreeBSD.org
Wed Oct 17 11:35:07 UTC 2012


Author: avg
Date: Wed Oct 17 11:35:06 2012
New Revision: 241640
URL: http://svn.freebsd.org/changeset/base/241640

Log:
  MFC r241305: ata_da: set disk::d_ident from serial number

Modified:
  stable/9/sys/cam/ata/ata_da.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ata/ata_da.c
==============================================================================
--- stable/9/sys/cam/ata/ata_da.c	Wed Oct 17 11:33:32 2012	(r241639)
+++ stable/9/sys/cam/ata/ata_da.c	Wed Oct 17 11:35:06 2012	(r241640)
@@ -1064,6 +1064,8 @@ adaregister(struct cam_periph *periph, v
 		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;


More information about the svn-src-stable-9 mailing list