joerg b983bae23b Use the new-born BIO_CMD1 instead of fudging a bio_flag value for reading
the sector ID.

Based on numerous comments made by Bruce, rewrite a good part of the
old fdformat() function, and merge it with fdreadid() into a single
unified fdmisccmd() function.  Various style and a couple of more
serious bugs fixed there.

While i was at it, i also fixed the long-standing "TODO: don't
allocate buffer on stack." in fdcioctl(), fixed a number of style bugs
there, and finally implemented the FD_DEBUG ioctl command that has
been advertised in <sys/fdcio.h> (formerly <machine/ioctl_fd.h>) for
almost seven years now. ;-)

Submitted by:	bde (a lot of fixes for fdformat())
2001-06-29 15:30:48 +00:00
..
2001-06-09 05:21:17 +00:00
2001-06-24 12:08:47 +00:00
2001-06-24 18:19:24 +00:00
2001-06-16 19:32:37 +00:00
2001-06-24 14:52:55 +00:00
2001-03-20 10:42:49 +00:00
2001-06-11 12:39:29 +00:00
2001-06-14 11:05:01 +00:00