xref: /inferno-os/man/3/floppy (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
FLOPPY 3
NAME
floppy - floppy disk interface
SYNOPSIS
 bind -a '#f' /dev 
 /dev/fd0disk  /dev/fd0ctl  /dev/fd1disk  /dev/fd1ctl  /dev/fd2disk  /dev/fd2ctl  /dev/fd3disk  /dev/fd3ctl 
DESCRIPTION

The floppy disk interface serves a one-level directory giving access to up to four floppy disk drives. Each drive is represented by a data and control file. There are no partitions.

Messages accepted by the ctl file include: .TF format

eject Eject the floppy, if possible.

reset Reset the drive.

format " type Format the floppy. The type sets the density and type of disk to be formatted; see format (8).

A read of the ctl file returns a string describing the form factor of the disk, one of 3½DD , 3½HD , 5¼DD , or 5¼HD .

SOURCE
/os/pc/devfloppy.c