Make serial numbers of daX disks visible by GEOM.
No objections from: scottl Obtained from: Wheel Sp. z o.o. (http://www.wheel.pl)
This commit is contained in:
parent
e93f5e4d25
commit
6cf918bc9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196824
@ -1266,6 +1266,8 @@ daregister(struct cam_periph *periph, void *arg)
|
||||
softc->disk->d_flags = 0;
|
||||
if ((softc->quirks & DA_Q_NO_SYNC_CACHE) == 0)
|
||||
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));
|
||||
disk_create(softc->disk, DISK_VERSION);
|
||||
mtx_lock(periph->sim->mtx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user