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

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