Permalink
Commits on Jan 20, 2012
  1. mhvtl.spec: Update for 1.2-1 release

    markh794 committed Jan 20, 2012
    Important fix - Plug a memory leak in lzo decompression routine
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. mhvtl.spec: Update for 1.2-0 release

    markh794 committed Jan 20, 2012
    Feature:
     Ability to specify zlib or lzo compression.
      via 'vtlcmd' at runtime.
          'vtlcmd <> compression lzo'
          'vtlcmd <> compression zlib'
      or
      /etc/mhvtl/device.conf entry
          ' Compression type: lzo'
          ' Compression type: zlib'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Change of state notification format version

    markh794 committed Jan 20, 2012
    Increase the version number.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Jan 14, 2012
  1. Add timestamps to state notification entries

    markh794 committed Jan 14, 2012
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Cleanup startup log messages

    markh794 committed Jan 14, 2012
    The aim is to make startup process a little more readable via
    logs
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Make compression type configurable.

    markh794 committed Jan 13, 2012
    New entry in device.conf
     Configuration type: lzo | zlib
    
    If an exact match to lzo isn't made, zlib is used.
    Any config mistakes will result in zlib compression.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Swap compression from zlib to lzo

    markh794 committed Dec 23, 2011
    Other software has seen performance improvements using lzo over zlib,
    so why not mhVTL.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Dec 24, 2011
  1. mhvtl.spec: Update for 1.1-1 release

    markh794 committed Dec 24, 2011
    - Clean up IPC resources when finished with them
    - Simplify fifo reference counting
    - Start including Scientific Linux patches (Still need to include kmod RPM)
    - Fix 'make install' on Ubuntu
    - Various log message cleanups
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Uncoditionally create /opt/mhvtl directory within RPM

    markh794 committed Dec 24, 2011
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Remove '#include <zlib.h>' where not required

    markh794 committed Dec 15, 2011
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  4. Remove 'Sense Buffer' address location from logs.

    markh794 committed Dec 14, 2011
    This message was just clogging logs with 'noise'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  5. Reduce syslog noise from lookup_log_pg & mode_pg

    markh794 committed Dec 14, 2011
    Now only log entry, match/no match.
    i.e. Remove log entry for each test.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  6. Update MHVTL_ERR msg - s/ERROR/ERROR:/

    markh794 committed Dec 14, 2011
    Seperate the 'ERROR' from rest of string using the ':'
    
    Make a little more readable
    vtltape[4998]: ERROR loadTape: Tape E01001TA failed to load...
    to
    vtltape[4998]: ERROR: loadTape(): Tape E01001TA failed to load...
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  7. SMC: Fix bug when moving media between drives

    markh794 committed Dec 14, 2011
    Failed to check mount of destination drive.
    
    With this in place, if a mount on destination drive
    fails, the media will be placed back into source drive.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  8. vtllibrary: Clean up logging

    markh794 committed Dec 13, 2011
    - Convert drive slot number into 'drive number'
    - Convert initial log message format consistent with vtltape
    - Add extra log info as to slot type as well as slot number
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  9. Makefile: target 'tar' should not make 'etc' & 'scripts' dir

    markh794 committed Dec 10, 2011
    Don't pre-build any scripts before creating a 'tar' ball
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Dec 9, 2011
  1. Fix 'make install' on Debian/Ubuntu

    markh794 committed Dec 9, 2011
    If '/usr/bin/dpkg' exists, modify rc script to require installed
    version of syslog.
    
    Debian Wheezy & Ubuntu 10.4 use rsyslog rather than syslog
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Dec 8, 2011
  1. Make 'message queue' log message a little more verbose

    markh794 committed Dec 8, 2011
    Same format for both vtltape & vtllibrary.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Always report reason for erase failure

    markh794 committed Dec 6, 2011
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  3. Test and call any 'pre' command before actual op code processing

    markh794 committed Dec 6, 2011
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Dec 6, 2011
  1. Remove unused variables

    markh794 committed Dec 6, 2011
    Identified '-Wunused-but-set-variable' gcc flag
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Simplify ipc reference counting.

    markh794 committed Dec 6, 2011
    It should work now..
    
    Removed the idea of trying to track each unique 'fifo' name.
    Now just track number of consumers of ipc resources.
    Once the count has dropped to zero, release resources.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Nov 22, 2011
  1. New macro MHVTL_ERR() which logs string 'ERROR'

    markh794 committed Nov 22, 2011
    Same macro as MHVTL_LOG except it also includes the string 'ERROR'
    
    Makes searching through a long log file easier by searching for 'ERROR'
    to identify failure point.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Track fifo usage & clean up resources when finished

    markh794 committed Oct 17, 2011
    Using shared-memory to keep track of number of users
    of the named pipe. Remove resources when last one
    is finished.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Nov 20, 2011
  1. Removed unused function: KillPrivateQueue()

    markh794 committed Nov 20, 2011
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Nov 17, 2011
  1. Check for valid user account before spawning child

    markh794 committed Nov 2, 2011
    Check for correct account before creating lu.
    If this fails, there is not the cleanup to perform.
    Oh, the cleanup wasn't there. Hence this fixes a bug
    where if the getpw*() return failure the daemon exits
    before any logical units gets created.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. Scientific Linux uses 'runuser' instead of 'su'

    markh794 committed Nov 1, 2011
    Test for runuser, if it exists, use it. Fall back to 'su' otherwise.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Oct 31, 2011
  1. smc: READ ELEMENT STATUS: Cleanup logging

    markh794 committed Oct 31, 2011
    Attempt to make logging on the READ ELEMENT STATUS a little
    more readable.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. smc: fix READ ELEMENT STATUS header data count

    Sebastian Herbszt authored and markh794 committed Oct 31, 2011
    The BYTE COUNT OF REPORT AVAILABLE field indicates the number of bytes needed
    to return all requested data.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Oct 15, 2011
  1. Add fifo: entry to library entries in device.conf

    markh794 committed Oct 15, 2011
    When building default device.conf entry, missing default
    fifo: /path for library devices
    
    Reported-by: nia
    Reference: http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/fifo-definition-option-in-device-conf-git-ver-1-1-0-9667d98-tp3423360p3423360.html
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Oct 13, 2011
  1. Update device.conf for fifo: definition

    markh794 committed Oct 12, 2011
    Allow fifo/named pipe to be defined in device.conf
    
    Using the '-f <fifo>' will override the value in device.conf
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Oct 11, 2011
  1. Prevent segfault when closing fifo

    markh794 committed Oct 11, 2011
    If the fifo wasn't created, don't attempt to close it.
    Attempting to close a bad file discriptor results in a segfault.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
Commits on Oct 9, 2011
  1. mhvtl.spec: Update for 1.1 release

    markh794 committed Oct 9, 2011
    With inclusion of 'real time event notification', bumping minor version
    from 1.0 to 1.1
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
  2. log sense: Update Sequential Access Device page

    markh794 committed Sep 22, 2011
    Include stats regarding compression ratios
    
    Now keeping stats on
     Data read/written both from/to media & initiator.
    
    The difference is the compression factor.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>