If the attachment is known, print "GEOM: new disk A on B" so the
hierarchy is discernible from the log.
MFC after: 1 month
Differential D46470
geom_disk: Print attachment in boot log like newbus jrtc27 on Aug 28 2024, 11:53 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions I suppose 3 printf's may cause garbled output if other printf's are used by something. Comment Actions Yeah, I could use an sbuf, or duplicate the format string for the two cases. I don't really know what's best, so I picked the simplest of the three... depends how important this is really. Comment Actions Please use an sbuf. They will be garbled on systems with lots of disks because each target can proceed in parallel. This used to be a big problem with CAM until Scott fixed it. Comment Actions sbuf_new_auto? sbuf_new with NOWAIT? sbuf_new with a fixed buffer, and if so, how big? Or just do the stupid "hard-code each printf" that avoids any allocation and sbuf fanciness? |