Export disk serial numbers for adaX disks.
Reviewed by: mav MFC after: 3 days
This commit is contained in:
parent
9dd512290c
commit
9cdcd1c520
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197896
@ -721,6 +721,8 @@ adaregister(struct cam_periph *periph, void *arg)
|
||||
softc->disk->d_flags = 0;
|
||||
if (softc->flags & ADA_FLAG_CAN_FLUSHCACHE)
|
||||
softc->disk->d_flags |= DISKFLAG_CANFLUSHCACHE;
|
||||
strlcpy(softc->disk->d_ident, cgd->serial_num,
|
||||
MIN(sizeof(softc->disk->d_ident), cgd->serial_num_len + 1));
|
||||
|
||||
adasetgeom(periph, cgd);
|
||||
softc->disk->d_sectorsize = softc->params.secsize;
|
||||
|
Loading…
Reference in New Issue
Block a user