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-12 09:40:04 +00:00
2001-06-12 09:40:04 +00:00
2000-11-25 08:13:33 +00:00
2000-05-11 11:09:50 +00:00
2000-07-11 11:49:33 +00:00
2001-06-23 06:52:54 +00:00
2001-06-23 06:52:54 +00:00
1999-08-28 01:08:13 +00:00
2001-06-15 08:01:21 +00:00