Re: VTL emulation, no barcodes shown in mtx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi again,

On Wed, Jan 06, 2021 at 07:58:25PM +0100, Michael Ablassmeier wrote:
> > mtx -f /dev/sg8 status
> > Storage Changer /dev/sg8:1 Drives, 8 Slots ( 0 Import/Export )
> > Data Transfer Element 0:Empty
> > Storage Element 1:Full 
> > Storage Element 2:Full 
> > Storage Element 3:Empty:VolumeTag=

it seems this i a regression introduced by one of the following commits
to smc.c:

 >  commit 2de8bebe132e3b998bf4848d0bd22b50367ad4b8
 >  Author: Lee Duncan <lduncan@xxxxxxxx>
 >  Date:   Sat Feb 16 10:29:19 2019 -0800
 > 
 >      Fix gcc7 string truncation warnings.

 > commit 73cb8f355479d8f7cb402ca967b137d4a32c8f76
 > Author: FUJITA Tomonori <tomof@xxxxxxx>
 > Date:   Fri Jul 28 11:34:15 2017 +0900
 >     smc: fix snprintf warnings with gcc7

i reverted both commits and removed -WAll from the makefile to be
able to compile, and now mtx show the barcodes:

 >  Storage Changer /dev/sg8:1 Drives, 8 Slots ( 0 Import/Export )
 >  Data Transfer Element 0:Empty
 >        Storage Element 1:Full :VolumeTag=TAPE001                        
 >        Storage Element 2:Full :VolumeTag=TAPE002  


bye,
    - michael



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux