Permalink
Commits on May 21, 2011
  1. mhvtl.spec: Update for 0.18-16 release

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 21, 2011
  2. vtllibrary: implement OPEN/CLOSE IMPORT/EXPORT ELEMENT command

    Implement OPEN/CLOSE IMPORT/EXPORT ELEMENT command.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 13, 2011
  3. Move ssc data struct from vtltape.h to ssc.h where they belong

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 20, 2011
  4. Personality module: Add media load/unload hook

    Looking thru the Sony AIT doco, noticed mode page 31h
    is updated on media load. Most likely other type do to. Need to check them.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 19, 2011
  5. Comments added to personality module hooks

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 19, 2011
  6. SPOUT: Return CHECK_CONDITION on error.

    Incorrectly returning status GOOD in a couple of places.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 19, 2011
  7. Cleaning media handling enhancements

    Some comments before I forget how this is supose to work..
     - cleaning_media_state is either
       0 - Not mounted
       1 - Cleaning media mounted -> return Cleaning cartridge installed
       2 - Cleaning media mounted -> return Cause not reportable
       3 - Cleaning media mounted -> return Initializing command required
    
     On cleaning media mount, <pmName>_cleaning() is called which:
       Sets a pointer from priv_lu_ssc -> cleaning_media_state.
       Sets cleaning_media_state to 1.
       Sets a 30 second timer to call inc_cleaning_state()
    
     inc_cleaning_state()
       Increments cleaning_media_state.
       If cleaning media_state == 2, set another timer for 90 seconds to again
       call inc_cleaning_state.
    
     If the application issues a TUR, ssc_tur() will return one of the
     above status codes depending on the current value of cleaning_media_state.
    
     When the cleaning media is unmounted, the pointer in priv_lu_ssc to this
     var will be re-set to NULL so the ssc_tur() will return defautl value.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 19, 2011
Commits on May 18, 2011
  1. Correct 'media type' load log message

    Signed-off-by: Albert Pauw <albert.pauw@gmail.com>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Albert Pauw committed with May 18, 2011
  2. SSC: TUR -> return NOT READY if cleaning media loaded

    Tested behaviour against real tape drive.
     It reports a : Not ready / Cleaning cartridge installed
    where mhvtl use to return 'ready'
    
    Reported-by: Albert Pauw <albert_pauw@gmail.com>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 18, 2011
  3. Don't write filemarks if WORM/Cleaning media mounted

    If check_condition() fails to allow write, don't write filemark(s).
    
    Reported-by: Albert Pauw <albert_pauw@gmail.com>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 17, 2011
Commits on May 13, 2011
  1. kernel module: add support for 2.6.39

    Cope with BKL removal and semaphore changes.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 13, 2011
  2. SPACE: Return error on unsupported 'code' values

    Currently spacing to sequential filemarks unsupported.
    Return INVALID FIELD in CDB for unsupported 'code' values.
    
    Removed unused variable.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 12, 2011
Commits on May 11, 2011
  1. Cleanup variables used in processCommnad()

    Removed unused vars.
     - No functional change.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 10, 2011
  2. REQUEST_SENSE: Fix return data.

    Need to set sense buffer [0] to at least reflect supported sense format
    In this case CURRENT INFORMATION (FIXED) 0x70
    
    Reference:
    http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/REQUEST-SENSE-issue-tp2879516p2885882.html
    
    Reported-by: Mark_k
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 10, 2011
  3. Cleanup log message pattern - make it easier to grep

    OP codes are logged with two '*' chars.
    trace() entries have '+++'
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 10, 2011
  4. ssc: fix ssc_space()

    Fix SPACE to EOD.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 11, 2011
Commits on May 4, 2011
  1. mhvtl.spec: Update for 0.18-15 release

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed May 4, 2011
Commits on May 3, 2011
  1. fix ssc_report_density_support()

    Handle the media flag and report capacity in megabytes.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  2. rename ssc_report_density() to ssc_report_density_support()

    Rename ssc_report_density() to ssc_report_density_support().
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  3. vtltape: fix ssc_report_density() position in ssc_ops

    The correct opcode is 44h.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  4. set capacity unit in personality modules

    Set capacity unit in personality modules.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  5. vtllibrary: remove nonexistent smc_start_stop()

    Remove nonexistent smc_start_stop().
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  6. vtltape: rename ssc_start_stop() to ssc_load_unload()

    Rename ssc_start_stop() to ssc_load_unload().
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
  7. vtllibrary: handle library offline state

    Report LOGICAL UNIT NOT READY, OFFLINE if the library is offline.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with May 3, 2011
Commits on Apr 30, 2011
  1. Fix rc script to generate correct media load rules

    Since commit 7fe1aa8, the '_'
    char in the LTO_n is no longer required.
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 30, 2011
  2. Include OP code S/No in fixed block read log

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 30, 2011
  3. ssc: terminate read loop on errors

    Terminate loop in ssc_read_6() on errors to handle fixed block reads.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Apr 30, 2011
Commits on Apr 28, 2011
  1. mktape: use medium_density_code_220 and medium_density_code_320

    Use medium_density_code_220 and medium_density_code_320.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Apr 28, 2011
  2. Set medium_density_code_220 to 0x48.

    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    Sebastian Herbszt committed with Apr 28, 2011
Commits on Apr 27, 2011
  1. Fix WRITE_6 fixed block writes.

    Increment data pointer for each block written.
    
    Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 26, 2011
  2. Remove dead code (unused variable in WRITE_6)

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 26, 2011
  3. Move media name/type/density into one table.

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 26, 2011
  4. Treat STK T10K A/B/C as unique types

    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 26, 2011
  5. Cleanup MODE page functions args.

    Re-organised function args so mode page pointer is first:
    	(struct mode *m, uint8_t page, uint8_t subpage)
    
    This will make it a little easier to add subpages (sometime in the future).
    
    Signed-off-by: Mark Harvey <markh794@gmail.com>
    committed Apr 24, 2011
Commits on Apr 23, 2011
  1. Increase max barcode length to 16 chars

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