CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2009/10/13 19:33:22

Modified files:
        sys/scsi       : mpath.c scsiconf.c scsiconf.h 

Log message:
rework how devids are handled in the midlayer and mpath.

previously a devid was a structure containing its type, length, and
a pointer to the actual devid value. this has been changed so a
devid is a header followed immediately by the memory making up the
id value. this allows the header and its value to be allocated
together.

devids are now reference counted, so multiple things (eg, the mpath
node handlers and the various scsi_link structures) can share the
same allocation safely. this also frees devids when scsi_links go
away, which was previously not done.

if mpath is enabled, then print the devids out as part of the devices
attach line.

Reply via email to