p The driver supports the following floppy diskette formats by using particular partitions: l -tag -width xxxx -offset indent -compact t 1.44MB 3.5-inch (b) t "1.2MB " 5.25-inch (c) t "360KB " 5.25-inch (1.2MB drive) (d) t "360KB " 5.25-inch (IBM-PC drive) (e) t "720KB " 3.5-inch (f) t "720KB " 5.25-inch (g) t "360KB " 3.5-inch (h) .El Partition .Ar a selects the default format for the attached floppy drive, as determined by the BIOS configuration for the diskette drive. .Sh FORMATTING The driver supports floppy disk formatting using the interfaces in n sys/fdio.h : l -tag -width FDIOCFORMAT_TRACK -compact t Dv FDIOCGETFORMAT Fa struct fdformat_parms Fetch current formatting parameters. This gets the default parameters for the open device if no parameters have been set during the session. t Dv FDIOCSETFORMAT Fa struct fdformat_parms Set formatting parameters. The driver saves this state and it persists while the device is open. t Dv FDIOCFORMAT_TRACK Fa struct fdformat_cmd Format a track on the medium. If this call returns .Er EINVAL , the track formatting parameters were out of range for the medium. If it returns .Er EIO , there was a medium error while formatting the track. t Dv FDIOCSETOPTS Fa int Set driver options which persist until the device is closed. The options should be the logical OR of the desired values below: l -tag -width FDOPT_NORETRY -compact t Dv FDOPT_NORETRY Do not retry operations on failure t Dv FDOPT_SILENT Do not print error messages to the console .El t Dv FDIOCGETOPTS Fa int Fetch drive options. .El
p A typical use of the formatting facilities would be to open the device, call .Dv FDIOCGETFORMAT to fetch the current format parameters, perhaps change a parameter or two, display the formatting details to the user, and then call .Dv FDIOCSETFORMAT followed by a series of calls to .Dv FDIOCFORMAT_TRACK . .Sh SEE ALSO .Xr fdformat 1 , .Xr acpi 4 , .Xr isa 4 , .Xr pnpbios 4 .Sh HISTORY The .Nm formatting support appeared in .Nx 1.3 .