PT(4)

NAME
worm - scsi Write-Once driver

SYNOPSIS
device worm0 at scbus?

DESCRIPTION
The worm driver provides preliminary support for a SCSI Write-Once type device.

It is unlikely that this driver works yet. Jordan will test it for us.

A scsi adapter must be separately configured into the system before this driver can be used.

This device only supports read(2) and write(2), and the general scsi ioctl calls. There are no partitions yet; the entire drive is treated as a single raw device. There are no block devices yet so you can't mount a file system with this. That will have to wait for the partition code to be cleaned up.

IOCTLS
The worm driver has no ioctls of it's own but rather acts as a medium for the generic scsi(4) ioctls. These are described in sys/scsiio.h.

FILES
/dev/worm[0-255]
    worm{x} is the 'xth' Write-Once device.

DIAGNOSTICS

It is unlikely that this driver actually works.

There will be no partition code until Bruce finishes his slice work.

There will be no block devices until the partition code is done.

There will be no kernel "devconf" code until that is treated cleanly across the SCSI system.

The at scbus? is required in the config file for the configuration system to know this is a SCSI device and generate the appropriate tables.

The 0 in worm0 in the configuration is required. This is a bug in config(8).

All scsi(4) debug ioctls work on worm devices.

SEE ALSO
sd(4) st(4) cd(4) ch(4) su(4) scsi(4)

HISTORY
The worm driver appeared in FreeBSD 2.1