Subject: Re: interleaved disk probing output
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Charles M. Hannum <abuse@spamalicious.com>
List: tech-kern
Date: 10/10/2003 17:30:39
On Friday 10 October 2003 05:27 pm, Manuel Bouyer wrote:
> On Fri, Oct 10, 2003 at 10:16:06AM -0700, Matt Thomas wrote:
> > Wouldn't it make more sense to change the aprint stuff to deal with this?
> > Add a parameter that will store the buffered output until a newline is
> > reached and then emits it as one large chunk?
> >
> > aprint_create(&ctx);
> > aprint_buffered(ctx, ...);
> > aprint_destroy(ctx);
>
> Then you could have wd0 and sd0 interleaved.
> It would be OK, I guess, if we could put several lines in the buffer.
> We still needs an ordering between atapi and SCSI though, so that
> ordering of devices between atapi and scsi don't change between reboots.
>
> > There is *NO* reason to slow down system startup for pretty printing.
>
> I don't think the slow down would be noticable. At the time config_found
> or config_attach is called, most of the work is already done.

This is probably true for SCSI disks, but it is not true for ATA.  My IBM 
laptop disks take ~5 seconds to respond to the first IDENTIFY command after a 
reset.