Date: Wed, 17 Oct 2012 11:35:07 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r241640 - stable/9/sys/cam/ata Message-ID: <201210171135.q9HBZ7WF061365@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210171135.q9HBZ7WF061365>