Permalink
Commits on Jun 15, 2012
  1. mhvtl.spec: Update for 1.3-0_release

    markh794 committed with Mark Harvey Jun 15, 2012
    - Move 'on disk' unique functions into its own shared lib (libvtlcart.so)
    - HP Ultrium VPD page data update to match HP documentation
    - IBM Ultrium VPD page 0xC0 & 0xC1 update to match IBM documentation
    - Fix SPIN return status
    - Add helper functions for moving media within library
      (in prep for library partition manager)
    - Add ability to set/clear APPEND ONLY status from user (vtlcmd)
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. IBM LTO VPD page 0xC0 - Fill in compile date/time

    markh794 committed with Mark Harvey Jun 15, 2012
    As per IBM Ultrium-5 SCSI Programmers guide, VPD page 0xc0 contains
    compile time/date strings.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Clean up a couple of compile time warnings

    markh794 committed with Mark Harvey Jun 15, 2012
    - Cast wrong formatting a log entry
    - Unused var 'data'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Jun 14, 2012
  1. Fix memory leak if HUP library daemon

    markh794 committed with Mark Harvey Jun 14, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. IBM LTO personality module - Fix VPD page 0xC1

    markh794 committed with Mark Harvey Jun 14, 2012
    Return serial number in VPD page 0xC1 as per IBM SCSI programmers guide
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Fix hp personality module from segfaulting

    markh794 committed with Mark Harvey Jun 14, 2012
    Fix overwrite of stack causing malloc() failures
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Improve reporting of out-of-memory failure

    markh794 committed with Mark Harvey Jun 14, 2012
    Log error if malloc() fails during initialisation stage.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. HP LTO emulation results in segfault.

    markh794 committed with Mark Harvey Jun 14, 2012
    Commenting out offending code until root cause is understood.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Jun 1, 2012
  1. Minor optimisation. Set values for all members of struct

    markh794 committed May 24, 2012
    Instead of memset(... 0) the whole struct then setting initial
    values for most of the vars, remove memset and initialise all
    existing members (only one left).
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on May 31, 2012
  1. Whitespace cleanup in logging.h

    markh794 committed May 31, 2012
    Found by 'checkpatch.pl'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on May 29, 2012
  1. hp_ultrium_pm: fix segfault in update_hp_vpd_cx()

    Sebastian Herbszt committed with markh794 May 29, 2012
    Need to use PCODE_OFFSET(pg) instead of plain pg.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on May 24, 2012
  1. Fix return status of Security Protocol IN

    markh794 committed May 24, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on May 23, 2012
  1. Fix compile brakage after HP VPD updates.

    markh794 committed May 23, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. remove unused REPORT LUNS command processing from user space

    Sebastian Herbszt committed with markh794 May 23, 2012
    The REPORT LUNS command is processed in the kernel module.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Update .gitignore

    Sebastian Herbszt committed with markh794 May 23, 2012
    Add usr/libvtlcart.so to .gitignore file.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Update HP VPD data structures

    markh794 committed May 23, 2012
    Sebastian Herbszt kindly supplied pointer to HP LTO5 doco
    
    Included in the doco is information describing VPD pages 0xC0 - 0xC5
    Updated HP emulation with this info.
    
    Made up dates.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. Log SCSI OP code 'FORCED EJECT' 0xa4 (0x1f)

    markh794 committed May 17, 2012
    Found in HP referenced guide v3
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  6. update shared lib location.

    markh794 committed May 14, 2012
    Mint & Ubuntu don't appear to be using lib64 any more.
    Search ld.so.conf.d/* for 'lib64', if not there set
    install path to 'lib' instead of 'lib64'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  7. Add drive capabilities across all emulations

    markh794 committed May 10, 2012
    Drive capability was incorrectly set for HP LTO drives.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Apr 26, 2012
  1. Cleaned up code style in 'movecommand' patchset

    markh794 committed Apr 11, 2012
    Updated coding style as reported by scripts/checkpatch.pl
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Move logging macros into their own header file

    markh794 committed Apr 26, 2012
    MHVTL_DBG & MHVTL_LOG now live in logging.h
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Implement movecommand

    Ivo De Decker committed with markh794 Apr 11, 2012
    When a movecommand is defined, the command will be run every time media is
    moved. If the command returns a non-zero exit code, the move will fail.
    
    Signed-off-by: Ivo De Decker <ivo.dedecker@ugent.be>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Build subprocess.o and link it into libvtlscsi.so.

    Ivo De Decker committed with markh794 Apr 11, 2012
    Currently not used.
    
    Signed-off-by: Ivo De Decker <ivo.dedecker@ugent.be>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. Add movecommand and commandtimeout config option

    Ivo De Decker committed with markh794 Apr 10, 2012
    Defined in device.conf. Currently not implemented.
    
    Signed-off-by: Ivo De Decker <ivo.dedecker@ugent.be>
  6. Add to smc_priv for 'movecommand' functionality

    markh794 committed Apr 25, 2012
    Add 'movecommand' and 'commandtimeout' to smc_priv struct
    
    Where
    'movecommand' is:
      a pointer to the name of an external command to call
    'commandtimeout' is:
      The timeout value given for the external command.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  7. add subprocess.[ch] to run external commands

    Ivo De Decker committed with markh794 Apr 10, 2012
    Signed-off-by: Ivo De Decker <ivo.dedecker@ugent.be>
  8. Fix segfault if message sent to invalid drive

    markh794 committed Apr 10, 2012
    Occurs if library_contents contains a 'drive' number that is not
    defined in device.conf
    
    Check valid slot before attempting to send message
    
    Reported-by: Ivo De Decker <ivo.dedecker@ugent.be>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  9. Don't use vtl_driver_name

    Ivo De Decker committed with markh794 Apr 8, 2012
    vtl_driver_name is not accessible, so don't use it in debug code
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  10. init script: use $syslog

    Ivo De Decker committed with markh794 Apr 8, 2012
    The init script can require $syslog te be started, so we don't need to try and
    find which syslog is used on this system.
    
    Signed-off-by: Ivo De Decker <ivo.dedecker@ugent.be>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  11. Add ability to set/clear APPEND ONLY mode of target

    markh794 committed Apr 4, 2012
    vtlcmd <index> Append Only Yes|No
    
    Will overwrite 'normal' Append Only operation to force a
    set/clear of Append Only mode.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  12. Old v1 on-disk format converted to 'shared lib'

    mtulner committed with markh794 Apr 11, 2012
    Signed-off-by: mtulner <mtr@fast.ag>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  13. Separate vtlcart as shared object

    mtulner committed with markh794 Apr 11, 2012
    Signed-off-by: mtulner <mtr@fast.ag>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  14. Some useful scripts

    mtulner committed with markh794 Dec 21, 2011
    Signed-off-by: mtulner <mtr@fast.ag>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  15. Change checkpatch.pl default to "--no-tree"

    markh794 committed Apr 11, 2012
    As this project is outside the kernel source tree, this makes
    a more sensible default.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  16. Update checkpatch.pl to latest from linux kernel src

    markh794 committed Apr 10, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>