smfd, floppy, floptical - driver for SCSI floppy and floptical disk
This driver supports 5 1/4" floppy drives in 3 standard formats when used
with the freestanding SCSI floppy drive. The standard single and double
density dual sided 3 1/2" drive and the 3 1/2" 20.1MB floptical drive is
The driver also supports a large range of special formats by use of the
SMFDSETMODE ioctl (defined along with the associated structure in
Most of the ioctls for the dksc also apply to this driver, with the
exception of the bad block handling. The volume header ioctl DIOCGETVH
is supported by creating the structure based on the current driver
parameters. The DIOCGETVH ioctl is not supported. Individual tracks may
be formatted using the DIOCFMTTRK ioctl and the fmt_map_info structure
defined in /usr/include/sys/dvh.h. The SMFDMEDIA ioctl is used to get the
status of the floppy and the SMFDEJECT ioctl is used to eject the floppy
on a drive with the software eject mechanism.
The standard devices (and suffixes) are the standard PC formats of 360KB
(.48), 720KB (.96), 1.2 MB (.96hi) on the regular 5 1/4" device, and the
standard 720 KB (.3.5), and 1.44MB (.3.5hi). The .3.5.20m suffix is for
the 20.1MB 3 1/2" floptical drives and disks only.
The special files are named according to the convention discussed in
intro(7M), with the exception of .type, instead of s#:
These devices can be used as filesystems, as backup devices, and for data
interchange with other systems.
Ordinarily, the devices may be opened by more than one process at a time,
as long as all are opened at the same density. Attempts to open at a
different density than which it is already open will fail.
To manually access a disk, use mount(1m). mediad(1m) can also be
configured to automatically mount a disk. New disks must be formatted;
The following errors are returned by this driver; other errors can also
be returned by higher levels of the operating system.
EAGAIN The drive returned an error indicating it was not ready (media
ejected, and so on).
EIO Some physical I/O error has occurred.
ENXIO Device number doesn't correspond to a valid device.
In previous releases, the flag O_EXCL had special meaning to this driver
when used on open; it is now ignored. For true exclusive use access, the
ds(7m) driver should be used, with the O_EXCL flag passed on open, where
it will either complete the open with no other opens allowed, or will
fail if the device is already open by any driver.
An open will now succeed if there is no media in the floppy drive.
fx(1M), mkfp(1m), fpck(1m), mediad(1m), mount(1m), open(2), intro(7),
PPPPaaaaggggeeee 2222 [ Back ]