root/drivers/scsi/st_options.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2    The compile-time configurable defaults for the Linux SCSI tape driver.
   3 
   4    Copyright 1995 Kai Makisara.
   5 
   6    Last modified: Sun Sep 10 13:26:02 1995 by root@kai.makisara.fi
   7 */
   8 
   9 #ifndef _ST_OPTIONS_H
  10 #define _ST_OPTIONS_H
  11 
  12 /* The driver does not wait for some operations to finish before returning
  13    to the user program if ST_NOWAIT is non-zero. This helps if the SCSI
  14    adapter does not support multiple outstanding commands. However, the user
  15    should not give a new tape command before the previous one has finished. */
  16 #define ST_NOWAIT 0
  17 
  18 /* If ST_IN_FILE_POS is nonzero, the driver positions the tape after the
  19    record been read by the user program even if the tape has moved further
  20    because of buffered reads. Should be set to zero to support also drives
  21    that can't space backwards over records. NOTE: The tape will be
  22    spaced backwards over an "accidentally" crossed filemark in any case. */
  23 #define ST_IN_FILE_POS 0
  24 
  25 /* If ST_RECOVERED_WRITE_FATAL is non-zero, recovered errors while writing
  26    are considered "hard errors". */
  27 #define ST_RECOVERED_WRITE_FATAL 0
  28 
  29 /* The "guess" for the block size for devices that don't support MODE
  30    SENSE. */
  31 #define ST_DEFAULT_BLOCK 0
  32 
  33 /* The tape driver buffer size in kilobytes. When loading as module, the
  34    memory block being used is slightly less than a power of two, i.e.,
  35    a 64 kB block is used for a 32 kB buffer => we may as well use what is
  36    being allocated! */
  37 #ifdef MODULE
  38 #define ST_BUFFER_BLOCKS 63
  39 #else
  40 #define ST_BUFFER_BLOCKS 32
  41 #endif
  42 
  43 /* The number of kilobytes of data in the buffer that triggers an
  44    asynchronous write in fixed block mode. See also ST_ASYNC_WRITES
  45    below. */
  46 #define ST_WRITE_THRESHOLD_BLOCKS 30
  47 
  48 /* The maximum number of tape buffers the driver allocates. The number
  49    is also constrained by the number of drives detected. Determines the
  50    maximum number of concurrently active tape drives. */
  51 #define ST_MAX_BUFFERS (2 + ST_EXTRA_DEVS)
  52 
  53 
  54 /* The following lines define defaults for properties that can be set
  55    separately for each drive using the MTSTOPTIONS ioctl. */
  56 
  57 /* If ST_TWO_FM is non-zero, the driver writes two filemarks after a
  58    file being written. Some drives can't handle two filemarks at the
  59    end of data. */
  60 #define ST_TWO_FM 0
  61 
  62 /* If ST_BUFFER_WRITES is non-zero, writes in fixed block mode are
  63    buffered until the driver buffer is full or asynchronous write is
  64    triggered. May make detection of End-Of-Medium early enough fail. */
  65 #define ST_BUFFER_WRITES 1
  66 
  67 /* If ST_ASYNC_WRITES is non-zero, the SCSI write command may be started
  68    without waiting for it to finish. May cause problems in multiple
  69    tape backups. */
  70 #define ST_ASYNC_WRITES 1
  71 
  72 /* If ST_READ_AHEAD is non-zero, blocks are read ahead in fixed block
  73    mode. */
  74 #define ST_READ_AHEAD 1
  75 
  76 /* If ST_AUTO_LOCK is non-zero, the drive door is locked at the first
  77    read or write command after the device is opened. The door is opened
  78    when the device is closed. */
  79 #define ST_AUTO_LOCK 0
  80 
  81 /* If ST_FAST_MTEOM is non-zero, the MTEOM ioctl is done using the
  82    direct SCSI command. The file number status is lost but this method
  83    is fast with some drives. Otherwise MTEOM is done by spacing over
  84    files and the file number status is retained. */
  85 #define ST_FAST_MTEOM 0
  86 
  87 #endif

/* [previous][next][first][last][top][bottom][index][help] */