ssc: adjust logged name in ssc_locate_10

Adjust logged name in ssc_locate_10.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
write error: Make backend format more resilient against disk full

On a filesystem full, the index was updated before the actual data.
As the index is only a few bytes, this could result in a successful
index update but the data block failing to be completely written.
End result is corrupt media (unable to mount).

Swap order:
- Write block of data first.
  If write fails, truncate data file to prior write and return error.
- If write succeeds, write index next
  If index update fails:
    * Truncate index to previous size.
    * Truncate data file to prior write.

Signed-off-by: Mark Harvey <markh794@gmail.com>
write error: Update TapeAlert flag on write error

Signed-off-by: Mark Harvey <markh794@gmail.com>
define TapeAlert meanings in scsi.h

Signed-off-by: Mark Harvey <markh794@gmail.com>
Use TapeAlert defined values instead of raw hex values

Signed-off-by: Mark Harvey <markh794@gmail.com>
Condense debug info in completeSCSICommand()

Condense two seperate log entries into one. Append sense info.

Signed-off-by: Mark Harvey <markh794@gmail.com>
Update register_ops to handle pre & post cmd handlers

Signed-off-by: Mark Harvey <markh794@gmail.com>
Use more TapeAlert defined values

Use more TapeAlert defined values.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
ssc: rename ssc_locate_10 to ssc_locate

Rename ssc_locate_10 to ssc_locate.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
ssc: implement LOCATE 16

Implement LOCATE 16.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>
vtltape: hook up ssc_locate to op code 92h

Hook up ssc_locate to op code 92h.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Mark Harvey <markh794@gmail.com>