Permalink
Commits on Sep 13, 2012
  1. mhvtl.spec: Updated for 1.4-4_release

    markh794 committed Sep 13, 2012
    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>
  2. Slightly more descriptive message if mhvtl.ko not loaded

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

    markh794 committed Sep 13, 2012
    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>
  4. Fix compile error on older Linux releases

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

    markh794 committed Sep 12, 2012
    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>
Commits on Sep 11, 2012
  1. Implement Parameter Code Reset in LOG SELECT

    Victor Kotlyar authored and markh794 committed Sep 10, 2012
    (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>
Commits on Sep 10, 2012
  1. LOG SELECT: Fix off-by-one issues

    markh794 committed Sep 4, 2012
    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>
  2. vtllibrary: fix performance counter

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

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

    markh794 committed Sep 1, 2012
    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>
Commits on Aug 16, 2012
  1. Add delay value for sum of READ_6/WRITE_6 OP codes

    markh794 committed Aug 14, 2012
    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>
Commits on Aug 8, 2012
  1. Add 'backoff' value to vtllibrary

    markh794 committed Aug 8, 2012
    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>
  2. Add a perfmance counter..

    markh794 committed Aug 6, 2012
    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>
  3. mhvtl.spec: Update for 1.4-1_release

    markh794 committed Aug 8, 2012
     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>
Commits on Aug 7, 2012
  1. Add Makefile for man page info

    markh794 authored and Mark Harvey committed Aug 7, 2012
    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>
Commits on Aug 2, 2012
  1. Update device.conf man page

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

    markh794 authored and Mark Harvey committed Aug 2, 2012
    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>
  3. mhvtl.spec: Update for 1.4-0_release

    markh794 authored and Mark Harvey committed Aug 1, 2012
        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>
  4. Move 'make install' responsibility from RPM to Makefile

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

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

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

    markh794 authored and Mark Harvey committed Jul 20, 2012
    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>
  8. Use ELRepo spec file

    markh794 authored and Mark Harvey committed Jul 21, 2012
    Updated version date to assist testing.
    Move '%changelog' data into a file 'ChangeLog'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  9. Rename 'mhvtl' package as 'mhvtl-utils'

    markh794 authored and Mark Harvey committed Jul 21, 2012
    As recommended by ELRepo as 'best practice'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  10. Remove kmod-mhvtl.spec

    markh794 authored and Mark Harvey committed Jul 21, 2012
    As recommended by ELRepo.
    
    Quote:
    "I would remove the kmod-mhvtl.spec file from the tarball, since this
    one is very specific to RHEL5. Maybe it is better to leave the packaging
    up to the distributions/repositories instead"
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Jul 7, 2012
  1. Improve logging of mode page creation

    markh794 authored and Mark Harvey committed Jul 7, 2012
    Only seen at log level 3... But should be better than earlier.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Remove unused variable 'removable'

    markh794 authored and Mark Harvey committed Jul 7, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Add SDLT320 emulation (a copy of SDLT600)

    markh794 authored and Mark Harvey committed Jul 4, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Update SDLT600 personality module

    markh794 authored and Mark Harvey committed Jul 5, 2012
    Updated INQUIRY data as per SDLT600 SCSI Software Interface Guide
    
    Note:
    Still need to remove some IBM LTO unique data from this personality module
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. Standardize on PCODE_OFFSET for inquiry page code mask

    markh794 authored and Mark Harvey committed Jul 5, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  6. Move standard inquiry info into memory

    markh794 authored and Mark Harvey committed Jul 5, 2012
    Setup a static inquiry in memory instead of dynamically build
    each time. This will allow 'custom' inquiry code to be removed
    from each personality module.
    The in-memory data structure is configured during module initialisation.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Jul 3, 2012