Permalink
Commits on Jan 12, 2013
  1. mhvtl.spec: Update for 1.4-5_release

    The most important bug fix is an EOM (End of Media) handling on some emulations.
    The symptom was backup software typically failed when spanning media
    (block count was off by one).
    
    Fix returned data from TAPE CAPACITY log page (byte swap issue).
    
    Add LTO-6 emulation.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Jan 12, 2013
  2. Fix return data from TAPE CAPACITY log page

    Byte-swap issue with data returned from TAPE CAPACITY log page.
    
    Signed-off-by: jean-michel Drean <jean-michel.drean@active-circle.com>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    jean-michel Drean committed with Jan 12, 2013
  3. Simplify 'remaining capacity' calculation

    Simplicy calculation of 'remaining capacity' following successful
    writeBlock.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Jan 12, 2013
  4. EOM handling fix

    Test for EOM before attempting to write block and return error code.
    
    Previous behaviour was wrong in that an extra block of data was being
    written.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Jan 12, 2013
Commits on Nov 28, 2012
  1. mhvtl.ko: Update date string

    Changes to mhvtl lld - Update date stamp so I can identify any potental
    problems with the latest changes
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Nov 27, 2012
Commits on Nov 27, 2012
  1. Initial checkin of LTO-6

    As LTO-6 are being release, updated 'emulation' with LTO-6 support.
    No changes between LTO5 & LTO6 behaviour. Need to find real LTO-6
    documentation to identify what (if anything) has changed.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Nov 22, 2012
  2. Fix up 'Add sparse support' in f61834d

    Forgot to commit the checkarch.sh script.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Nov 20, 2012
  3. kernel lld: Fix some errors reported by 'sparse' check

    Use sparse:
    make C=1 CF=-D__CHECK_ENDIAN__
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Nov 17, 2012
  4. Use bitfields for on/off values

    ssc_personality_template -> Use bitfields to store true/false values instead
    of unsigned char.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Nov 14, 2012
  5. Initial commit of drive_stats.pl

    Helper script for NetBackup drive_unmount_notify script.
    
    Parses the output of /usr/openv/volmgr/bin/scsi_command -log_dump
    and extracts the :
     - Number of bytes read/sent to initiator
     - Number of bytes written/read to/from tape
     - hard and soft media error count
    
    Note: This script can be utilised for physical drives who support
    log sense/log select op code
    
    Search for Symantec article: HOWTO80688
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Oct 18, 2012
Commits on Sep 13, 2012
  1. mhvtl.spec: Updated for 1.4-4_release

    Note: The 1.4-2 & 1.4-3 releases never made it as released pacakges
    due to build issues
    
    Differences between 1.4-1 & 1.4-4 (2012-08-08 & 2012-09-13)
    - Add 'performance' counters to all op codes. This reports the time spent in
      'usleep()' since last op code.
    - Fix an off-by-one bug in LOG SELECT
    - Implement ability to reset log counter via LOG SELECT & PCR bit
    - Add _GNU_SOURCE define so source can be compiled on old Linux distributions
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 13, 2012
  2. Slightly more descriptive message if mhvtl.ko not loaded

    An FAQ on forum. Hopely make description a little more unstandable.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Aug 19, 2012
  3. Silence compiler warning regarding uninitialised var 'month'

    quantum_dlt_pm.c: In function `init_dlt_inquiry':
    quantum_dlt_pm.c:87: warning: `month' might be used uninitialized in this function
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 13, 2012
  4. Fix compile error on older Linux releases

    Missing define for 'useconds_t' unless _GNU_SOURCE defined
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 13, 2012
Commits on Sep 12, 2012
  1. mhvtl.spec: Update for 1.4-3_release

    Fix off-by-one error in LOG SELECT
    Implement log counter reset via PCR bit in LOG SELECT
    Add 'performance' counters to vtllibrary
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 12, 2012
Commits on Sep 11, 2012
  1. Implement Parameter Code Reset in LOG SELECT

    (edited) Message from Victor:
    The mhvtl is missing functionality which CASTOR implements.
    
    "LOG SELECT" with "Parameter Code Reset bit" and "Default cumulative values"
    sg_raw /dev/sg1 4c 2 c0 0 0 0 0 0 0 0
    
    We use this command to clear drive statistics before each file and after we
    get statistics with "LOG SENSE" "Sequential Access Device Log page" so we
    have compression statistics for each file
    
    Signed-off-by: Victor Kotlyar <Victor.Kotlyar@cern.ch>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Victor Kotlyar committed with Sep 10, 2012
Commits on Sep 10, 2012
  1. LOG SELECT: Fix off-by-one issues

    Byte comparisons incorrect as PCR (Parameter Code Reset) was off-by-one
    Test for PC (Page Control) was bit-shift left and off-by-one
    
    Reported-by: Victor Kotlyar <Victor.Kotlyar@cern.ch>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 4, 2012
  2. vtllibrary: fix performance counter

    Fix performance counter.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Sep 10, 2012
  3. Use PRId64 instead of %ld

    Use PRId64 instead of %ld.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Sep 10, 2012
Commits on Sep 1, 2012
  1. mhvtl.spec: Update for 1.4-2_release

    Add performance counter to each SCSI op code.
    - Records the total mount of time in usleep() since last op code
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 1, 2012
Commits on Aug 16, 2012
  1. Add delay value for sum of READ_6/WRITE_6 OP codes

    Log sum of delay values when logging every '50' entries.
     "50th contiguous [READ_6|WRITE_6] requests (%ld) (delay xx)"
    
    Where xx is the sum of all previous 50 delay intervals.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Aug 14, 2012
Commits on Aug 8, 2012
  1. Add 'backoff' value to vtllibrary

    Tweak default minimum & backoff values
     - Now defined in vtllib.h
    
       define MIN_SLEEP_TIME
       define DEFLT_BACKOFF_VALUE
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Aug 8, 2012
  2. Add a perfmance counter..

    Add the 'delay' information with CDB log entry
    
    The '(delay xxx)' value is the delay time between previous SCSI OP code and
    this SCSI OP code
    
    Lets see if this is helps improve performance tuning.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Aug 6, 2012
  3. mhvtl.spec: Update for 1.4-1_release

     Fix dump_tape to understand new library subdirectory format
     Fix vtlcmd to understand new library subdirectory format
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Aug 8, 2012
Commits on Aug 7, 2012
  1. Add Makefile for man page info

    A 'fall-out' of simplifying RPM SPEC file is 'make install' needs
    the man pages too.
    
    Bug report by: sbcedservice
    http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/Re-make-install-error-Release-1-4-0-mhvtl-2012-08-01-td4025060.html
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Aug 7, 2012
Commits on Aug 2, 2012
  1. Update device.conf man page

    Add "Home directory:" field to man page
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Aug 2, 2012
  2. Initial commit of mhVTL install/configure script for CentOS

    Use at own risk..
     - Install basic CentOS (tested with 6.2)
     - Run script as 'root'
    
    Signed-off-by: Patrick Ru <patrick.ru@hotmail.com>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Aug 2, 2012
  3. mhvtl.spec: Update for 1.4-0_release

        New features
          vtltape: Make the backoff algrithm value configurable
          Default media belonging to a library in a subdir
          Add default "Home directory" entry in device.conf
        Personality module updates
          Allow 'default' module to load all media R/W
          Add IBM half-hight INQUIRY string match
          vtltape: Update log entry regarding media capacity depending on capabiliti
          Initial commit of SDLT600 personality module
          Initial commit of SDLT320 personality module
          Update mktape to work 'better' with SDLT media types
        Cleanups
          Move standard inquiry info into memory structure
          mhvtl.ko: Silence install 'depmod' error
          Standardize on PCODE_OFFSET for inquiry page code mask
          Remove unused variable 'removable'
          Improve logging of mode page creation
        Packaging:
          Remove kmod-mhvtl.spec
          Rename 'mhvtl' package as 'mhvtl-utils'
          Use ELRepo spec file
          Move 'make install' responsibility from RPM to Makefile
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Aug 1, 2012
  4. Move 'make install' responsibility from RPM to Makefile

    Simplify RPM SPEC file and move responsibility of 'make install'
    into the Makefile
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Aug 1, 2012
  5. Add default "Home directory" entry in device.conf

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Jul 26, 2012
  6. Update mktape with new media path layout

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Jul 25, 2012
  7. Default media belonging to a library in a subdir

    Check for media in /opt/mhvtl/<library id>/<media id> if this
    fails, fall back to old default of /opt/mhvtl/<media id>
    
    Look for virtual media in a library subdirectory
    	/opt/mhvtl/<library number>/<media id>
    
    Or the path specified in the device.conf (Library entry)
     Home directory: /opt/mhvtl/path/to/somewhere
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed with Mark Harvey Jul 20, 2012