
		      Odcontrol-1.3 for FreeBSD
		      =========================

							 Sep. 27, 2000
						      Shunsuke Akiyama
						   akiyama@FreeBSD.org


About this program
------------------

This is a program that controls miscellaneous facilities of SCSI
optical disk drive.  This program work on FreeBSD 2.1.5-RELEASE or
later systems.  This program also work on FreeBSD 2.1.0-RELEASE + my
od-driver-2.1.0R-PL3 package.

This program has following functions:

   * Current drive cache mode control.
   * Ejecting a media from drive.
   * Physical formatting a media.
   * Verify a media and reassign bad block(s).

Reassigning bad block is only works with the drive supported SCSI
'Reassign Blocks' command.

To disable drive write cache with this program is useful for kernel
panic if you using old OLYMPUS MO drive.


How to install
--------------

Install is very easy.
Extract this package, then move to extracted directory.

    % tar zxf odcontrol-1.3.tar.gz
    % cd odcontrol-1.3

And

    % make depend
    % make

Next, su to root and install this program.

    % su
    Password:
    # make install

That's all.

In default case, program is installed into /usr/local/sbin, manual is
installed into /usr/local/man/man8.  If you want to install different
directory, specify BINDIR and MANDIR as make parameter.

    (ex. program into /usr/sbin, manual into /usr/share/man/man8)
    # make BINDIR=/usr/sbin MANDIR=/usr/share/man/man install


Others
------

* scsi_sense.c is from FreeBSD-2.2-961014-SNAP distribution.  I used
  it for this program with minimal modifications.

* Bug reports, patches and any enhancements ideas are welcome, please
  send to me.


$Id: README,v 1.8 2000/09/27 14:36:16 akiyama Exp $
