Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 21, 2013
  1. mhvtl.spec: Update for 1.4-7_release

    authored
    - Bumped version to 1.4-7
    - Add DLT7000/DLT8000 emulation
    - Record 'last load' data in MAM
    - New utility 'edit_tape' which will allow modificiation of media 'meta data'
    - Prevent and log possibility of READ ELEMENT STATUS overflowing data buffer
    - Set 'POWERON-RESET' if library re-configured via HUP signal
    - Update 'minor' number from 'unsigned char' to 'unsigned int' which removes
     max number of device nodes at 256
    - Rework READ ELEMENT STATUS - Simplify code and correct bug where incorrect
     byte count returned.
    - Add 'support' for specifying 9x40 and DLT media via barcode suffix
    - Update kernel module to prevent overflow if DEF_MAX_MINOR_NO reached.
    - Update kernel module to allow up to 1024 minor numbers
    - Update kernel module vers to 0.18.12, vers date 20130310-0
    - off-by-one fix of compression mode page
    - Fix 'READ POSITION' ssc op code
    - Helper scripts for NetBackup added
     - drive_stats.pl (parse 'scsi_command' output and email on tape unload)
     - vlt_endeject_notify.pl (NetBackup Vault helper)
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 19, 2013
  1. vtllib: set partition to 0 in resp_read_position_long

    Sebastian Herbszt authored committed
    Set partition to 0 in resp_read_position_long.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. ssc: log unsupported service actions in ssc_read_position

    Sebastian Herbszt authored committed
    Log unsupported service actions in ssc_read_position.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. ssc: add page_format variable and log page format parameter in ssc_mo…

    Sebastian Herbszt authored committed
    …de_select
    
    Add page_format variable and log page format parameter in ssc_mode_select.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Update bits for READ POSITION

    authored
    - 7 bits reflecting:
    BOP, EOP, LOCU, BYCU, LOLU, PERR & BPEW
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 18, 2013
  1. ssc: print service_action in ssc_read_position

    Sebastian Herbszt authored committed
    Print service_action in ssc_read_position.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. spc: fix spelling in spc_mode_sense

    Sebastian Herbszt authored committed
    Fix spelling in spc_mode_sense.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. ssc: print save pages parameter in ssc_mode_select

    Sebastian Herbszt authored committed
    Print save pages parameter in ssc_mode_select.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
  4. ssc: rename save_page variable to save_pages in ssc_mode_select

    Sebastian Herbszt authored committed
    Rename save_page variable to save_pages in ssc_mode_select and fix debug output.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 15, 2013
  1. READ ELEMENT STATUS: Correct 'byte count of report available'

    authored
    As per smc4r15, 6.12.2:
    The byte count does not include the byte count of the actual
    element status data header.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 13, 2013
  1. Add more details to READ ELEMENT STATUS debug

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. READ ELEMENT STATUS: Add byte count of drives to total

    authored
    Missed adding drive structure size to total byte count
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. kernel module: Update version and date stamp

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. kernel module: Prevent buffer overflow on max minor number

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. kernel module: Define 'minor' number as an unsigned int

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 12, 2013
  1. ssc: fix access to page mode data in set_mode_compression

    Sebastian Herbszt authored committed
    Fix off-by-one error in access to page mode data.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 9, 2013
  1. READ ELEMENT STATUS: query 'ANY' spaning multiple slot types

    authored
    - This fixes returned data of type 'ANY' if address range spans multiple
    slot types.
    - Also included is a fix to dump the element data correctly
    
    tested on library config with one drive - this queries 5 slots of type 'any':
    sg_raw -r 1k /dev/sg12 b8 10 00 01 00 05 01 00 01 88 00 00
    
    Reference:
    http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/Kernel-Problems-since-1-Day-td4025337.html
    
    Reported by: 'claudio'
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 7, 2013
  1. Fix incorrect handling of 'ANY' slot type

    authored
    Resulted in segfault in vtllibrary
    
    This 'read element status' would trigger the segfault.
    sg_raw -r 1k /dev/sg12 b8 10 00 01 00 39 01 00 0d 30 00 00 00 00 00 00
    
    Reference:
    http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/Kernel-Problems-since-1-Day-td4025337.html
    
    Reported-by: Holliefant on mhvtl-linux-virtual-tape-library-community-forums
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 4, 2013
  1. Update .gitignore

    Sebastian Herbszt authored committed
    Add /usr/edit_tape to .gitignore file.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. default_ssc_pm: fix initialisation order

    Sebastian Herbszt authored committed
    Register the personality module before calling init_default_inquiry().
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Mar 2, 2013
Commits on Feb 28, 2013
  1. Remove dependency on library_contents config in correct order

    authored
    Since simplifying READ ELEMENT STATUS, incorrect order of entries
    in library_contents.xx file resulted in READ ELEMENT STATUS returning
    a sense error (5/24/00)
    
    This patch parses the library_contents.xx file in correct order.
    
    Reported-by: nia
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Clear 'density' value before use

    authored
    Fix error where undefined media was created with previous valid density value
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Create library_contents.XX for non default configs

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Improve logging.

    authored
    Attempt to record line number of error in config file.
    More descriptive ? log message if error attempting to write to msg queue
    Log root cause for move medium failures instead of relying solely on sense code
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. Change default element addresses to allow more than 256 drives

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  6. Update char dev 'minor' from unsigned char to unsigned int

    authored
    Minor number defined as unsigned char limited to 256 possible devices.
    
    - Increased 'minor' from unsigned char to 'unsigned int'
    - Increase message queue limit from 256 to 1024
    
    kernel module should support more than 256. Default kernel only allows 128
    st devices anyway..
    
    TODO:
    Something not right. Fails to create more than 255 device nodes.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Feb 23, 2013
  1. READ ELEMENET STATUS: Set reserved fields to zero

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. READ ELEMENT STATUS: Correct masking of ASC/ASCQ

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. READ ELEMENT STATUS: Log possible buffer overflow

    authored
    As READ ELEMENT STATUS can return large amounts of data, there is
    a possibility to overflow the pre-allocated buffer.
    
    Pre-alloc buffer based on element count or SMC_BUF_SIZE (which ever is larger)
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. READ ELEMENT STATUS: Recoded op code READ ELEMENT STATUS

    authored
    Corrected error where incorrect number (and length) reported
    if a subset of elements were requested.
    Sanitised function args to make code easier to understand
    Removed hard-coded ordering dependencies on element address(es)
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Feb 22, 2013
  1. Register PERSISTENT RESERVATION & SECURITY PROTOCOL OP codes

    authored
     - Define support in personality module for support of the OP code
     - personality_module_register() then adds the default op code if
    feature is set
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Code cleanup of personality modules

    authored
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Something went wrong with that request. Please try again.