summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fdformat
Commit message (Collapse)AuthorAgeFilesLines
* Include <string.h> for some prototypes, rather than depending onmike2002-04-011-0/+1
| | | | pollution from <strings.h>.
* mdoc(7) police: doh, again I forgot about this XXX.ru2002-01-101-2/+1
|
* mdoc(7) police: tidy up the markup.ru2002-01-101-19/+26
|
* Second round of floppy disk driver documentation updates: document thejoerg2001-12-251-65/+61
| | | | | | | changes in the userland utilities. For fdcontrol(8), i now finally keep my promise made more than 7 years ago that ``the fdcontrol utility is currently under development and the user interface will likely change''. :-)
* Long promised major enhancement set for the floppy disk driver:joerg2001-12-151-155/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . The main device node now supports automatic density selection for commonly used media densities. So you can stuff your 1.44 MB and 720 KB media into your drive and just access /dev/fd0, no questions asked. It's all that easy, isn't it? :) . Device density handling has been completely overhauled. The old way of hardwired kernel density knowledge is no longer there. Instead, the kernel now implements 16 subdevices per drive. The first subdevice uses automatic density selection, while the remaining 15 devices are freely programmable. They can be assigned an arbitrary name of the form /dev/fd[:digit]+.[:digit:]{1,4}, where the second number is meant to either implement device names that are mnemonic for their raw capacity (as it used to be), or they can alternatively be created as "anonymous" devices like fd0.1 through fd0.15, depending on the taste of the administrator. After creating a subdevice, it is initialized to the maximal native density of the respective drive type, so it needs to be customized for other densities by using fdcontrol(8). Pseudo-partition devices (fd0a through fd0h) are still supported as symlinks. . The old hack to use flags 0x1 to always assume drive 0 were there is no longer supported; this is now supposed to be done by wiring the devices down from the loader via device flags. On IA32 architectures, the first two drives are looked up in the CMOS configuration records though. On PCMCIA (i. e., the Y-E Data controller of the Toshiba Libretto), a single drive is always assumed. . Other specialities like disabling the FIFO and not probing the drive at boot-time are selected by per-controller or per-drive flags, too. . Unit attentions (media has been changed) are supposed to be detected now; density autoselection only occurs after a unit attention. (Can be turned off by a per-drive flag, this will cause each Fdopen() to perform the autoselection.) . FM floppies can be handled now (on controllers that actually support it -- not all do these days). . Fdopen() can be told to avoid density selection by setting O_NONBLOCK; this leaves the descriptor in a half-opened state where only a few ioctls are accepted. This is necessary to run fdformat on a device that uses automatic density selection (since you cannot autoselect on an unformatted medium, obviously). . Just differentiate between a plain old NE765 and the enhanced chips, but don't try more; the existing code was wrong and only misdetected the chips anyway. BUGS and TODOs: . All documentation update still needs to be done. . Formatting not-so-standard format yields unpredictable results; i have yet to figure out why this happens. "Standard" formats like 720 and 1440 KB do work, however. . rc scripts are needed to setup device nodes with nonstandard densities (like the old /dev/fdN.MMM we used to have). . Obtaining device flags from the kernel environment doesn't work yet, thus currently only drives that are present in (IA32) CMOS are really detected. Someone who knows the odds and ends about device flags is needed here, i can't figure out what i'm doing wrong. . 2.88 MB still needs to be done.
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+2
|
* mdoc(7) police:ru2001-08-071-3/+5
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+2
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Make fdformat WARN=2 ready.joerg2001-07-032-11/+9
|
* Fixed the world breakage in rev. 1.8 (space after -I).ru2001-07-031-1/+2
| | | | While here, removed the GCCism (replaced with WARNS?=1).
* Use the printstatus() function from ${.CURDIR}/../fdread/fdutil.c tojoerg2001-07-023-25/+39
| | | | | | | | | give a bit more information about up to 10 errors encountered during formatting (unless -q has been specified, of course). While being here, removed a bitrotten comment in the Makefile, and kill the old Emacs local variable stuff at the end of fdformat.c that's no longer useful anway.
* Now that we've got it, use FDOPT_NOERRLOG for fdformat and fdwrite tojoerg2001-06-261-1/+5
| | | | | | avoid blasting the syslog with error messages from bad floppies. Both tools have their own error reporting anyway (which could easily be cluttered by the syslog output on your terminal).
* Part #2 of the <machine/ioctl_fd.h> => <sys/fdcio.h> move: handle thejoerg2001-06-061-1/+1
| | | | tools in usr.sbin/fd*.
* fdformat prompts for user confirmation. it exits 0 if the userphk2001-05-231-1/+1
| | | | | | | | doesn't confirm, which needlessly complicates scripts. PR: 15339 Submitted by: richard winkel rich@math.missouri.edu MFC after: 1 week
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-1/+0
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-2/+4
|
* Prepare for mdoc(7)NG.ru2000-12-271-1/+1
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* mdoc(7) police: do not split author names in the AUTHORS section.ru2000-11-221-0/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+1
|
* Add -y option which doesn't ask for confimation, but still shows progressphk2000-06-012-4/+12
| | | | | PR: 9259 Submitted by: Clark Gaylord <cgaylord@vt.edu>
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-4/+8
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Fix fdformat to not use /dev/r* device nodes anymore, this usageasmodai2000-01-232-8/+8
| | | | | | | | | has been made obsolete by the block/char device merging. Reflect this change in the manual page and fix the usage of a backslash in ``e.g.''. Reviewed by: bright, sheldonh, phk
* - Added 640KB and 1232KB formats support.kato2000-01-071-2/+12
| | | | | | - Added $FreeBSD$. Submitted by: nyan
* Correct use of .Nm.charnier1999-10-171-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+2
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* mkdosfs(1) is dead, refere to newfs_msdos(8)obrien1998-09-291-3/+3
|
* fd(4) referenced in HISTORY has nothing to do with floppy disks;des1998-04-201-1/+1
| | | | changed to fdc(4).
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+6
|
* Use err(3). Document options in man page, not in usage string.charnier1997-09-172-65/+46
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-1/+1
|
* Cross-reference newfs(8), and mkdosfs(1).joerg1995-11-051-3/+18
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Corrected the xref to the driver man page to be fdc(4) now thatjoerg1994-10-281-2/+2
| | | | we have one (instead of fd(4)).
* Transfer speed definitions are now also found in <machine/ioctl_fd.h>.joerg1994-09-252-2/+1
| | | | Remove the old include file, since it used to be in a non-public place.
* Added a missing ${DESTDIR}. The real problem is that stuff related tophk1994-09-181-1/+1
| | | | | floppy formatting is in /sys/i386/isa/fdreg.h, it should be in /usr/include somewhere ??
* Fix include path.dg1994-09-172-2/+2
|
* Make use of the new FDOPT_NORETRY facility. It does not make sense tojoerg1994-05-223-56/+61
| | | | | | verify formatted tracks with fully retryng. The head should not be moved in either case. Also some minor copyright cleanup.
* From: phk@login.dkuug.dk (Poul-Henning Kamp)rgrimes1994-02-201-3/+3
| | | | | | | | Message-Id: <9402201119.AA06430@login.dkuug.dk> Subject: bug in fdformat.c There is a bug in fdformat.c: the number of heads are hardcoded in two places. This is quite inconsequencial at present, but a bug nontheless.
* Some fixes from Joergache1994-02-111-8/+15
|
* Fix size of il (interleave) array.ache1994-02-101-1/+1
|
* Add interleave > 1 support by Poul-Henning Kamp.ache1994-02-102-10/+17
| | | | Chack valid range of sectors per track.
* We got now floppy formatterache1994-01-263-0/+506
OpenPOWER on IntegriCloud