Joerg Wunsch f664aeee49 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-28 06:17:16 +00:00
2001-04-16 13:20:39 +00:00
2001-06-12 09:40:04 +00:00
2001-06-14 11:09:11 +00:00
2001-03-25 07:21:04 +00:00
2001-06-27 21:40:28 +00:00
2001-02-06 11:21:58 +00:00
2001-06-15 00:13:18 +00:00
2001-02-11 03:35:45 +00:00
2001-02-06 11:21:58 +00:00
2000-05-01 19:54:26 +00:00
2001-06-15 00:19:43 +00:00
2001-06-23 06:52:54 +00:00
2001-05-07 21:46:44 +00:00
2001-06-15 00:23:11 +00:00