Commits on Dec 24, 2011
  1. mhvtl.spec: Update for 1.1-1 release

    - 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>
    committed Dec 24, 2011
  2. Uncoditionally create /opt/mhvtl directory within RPM

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

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

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

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

    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>
    committed Dec 15, 2011
  7. SMC: Fix bug when moving media between drives

    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>
    committed Dec 15, 2011
  8. vtllibrary: Clean up logging

    - 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>
    committed Dec 14, 2011
  9. Makefile: target 'tar' should not make 'etc' & 'scripts' dir

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

    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>
    committed Dec 9, 2011
Commits on Dec 8, 2011
  1. Make 'message queue' log message a little more verbose

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

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

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

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

    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>
    committed Dec 6, 2011
Commits on Nov 22, 2011
  1. New macro MHVTL_ERR() which logs string 'ERROR'

    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>
    committed Nov 22, 2011
  2. Track fifo usage & clean up resources when finished

    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>
    committed Oct 18, 2011
Commits on Nov 20, 2011
  1. Removed unused function: KillPrivateQueue()

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

    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>
    committed Nov 3, 2011
  2. Scientific Linux uses 'runuser' instead of 'su'

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

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

    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>
    Sebastian Herbszt committed with Oct 31, 2011
Commits on Oct 15, 2011
  1. Add fifo: entry to library entries in device.conf

    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>
    committed Oct 15, 2011
Commits on Oct 13, 2011
  1. Update device.conf for fifo: definition

    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>
    committed Oct 13, 2011
Commits on Oct 11, 2011
  1. Prevent segfault when closing fifo

    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>
    committed Oct 11, 2011
Commits on Oct 9, 2011
  1. mhvtl.spec: Update for 1.1 release

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

    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>
    committed Sep 22, 2011
Commits on Oct 7, 2011
  1. Default common fifo for all daemons

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Oct 8, 2011
  2. Add realtime state notification

    Accessed via named pipe (-f /path/to/fifo)
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 15, 2011
  3. Restructure writeBlock()

    Potentially save a memcpy() for incorrect block sizes.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 22, 2011
Commits on Sep 28, 2011
  1. Remove temp var : struct smc_priv *smc_p

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 28, 2011
  2. vtllibrary: rename var 'slot_layout' to 'smc_p'

    Naming convention similar to vtltape - ssc_p
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 28, 2011
  3. bufsize: Define in the one location.

    vtltape used private location, vtllibrary used lu struct.
    
    Both now use private location.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 28, 2011
Commits on Sep 21, 2011
  1. spc: log subpage code in spc_mode_sense()

    Log subpage code in spc_mode_sense().
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Sep 22, 2011
  2. log page: Log more info onto one line

    Reduce two lines per log page into one.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Sep 18, 2011