Date: Wed, 15 Sep 1999 10:39:10 -0600 (MDT) From: "Kenneth D. Merry" <ken@kdm.org> To: grog@lemis.com (Greg Lehey) Cc: kris@airnet.net (Kris Kirby), scsi@FreeBSD.ORG Subject: Re: Reformatting a 520-byte-per-sector drive Message-ID: <199909151639.KAA42939@panzer.kdm.org> In-Reply-To: <19990915195051.H30655@freebie.lemis.com> from Greg Lehey at "Sep 15, 1999 07:50:51 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey wrote... > On Wednesday, 15 September 1999 at 0:48:26 -0600, Kenneth D. Merry wrote: > > Kris Kirby wrote... > >> Kenneth D. Merry wrote: > >>> The other problem you may have with this is that if the drive does format > >>> itself when you change the blocksize, the timeout for the mode select is > >>> likely too short. In fact, the default timeout for generic SCSI commands > >>> like the one you issued is 5 seconds, which is way too short for a format. > >> > >> I'm chasing them on the command line ; one right after the other. > >> (That's not _just_ a grammatical > >> example!) So, like the energizer bunny, it keeps right on going, > >> formatting. > > > > One other thing -- with my new format patches (the URL I sent out earlier), > > you'll know whether it's formatting or not, since you'll see the percentage > > done. > > How do you get this info? I thought the drive went catatonic until it > was finished. If you set the immediate bit on the format command, it returns immediately. Then you just get sense information from the drive. It returns a 16-bit value representing the percentage done. I think you can get the progress indication if you do a non-immediate format as well, but it's obviously easier to do with the immediate bit in camcontrol. (Otherwise I'd have to spawn a separate process to track the progress of the format.) Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909151639.KAA42939>