Re: [linux-minidisc] scsi test tool using cdrtools/libscg


-------- Original-Nachricht --------
> Datum: Sat, 5 Jun 2010 17:55:34 +0200
> Von: Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> An: Thomas Arp <manner.moe@gmx.de>
> CC: linux-minidisc@lists.fu-berlin.de
> Betreff: Re: [linux-minidisc] scsi test tool using cdrtools/libscg

> bash-3.2# /opt/schily/bin/cdrecord -scanbus
> Cdrecord-ProDVD-ProBD-Clone 2.01.01a78 (i386-apple-macosx10.3.0) Copyright
> (C) 1995-2010 J�g Schilling
> Using libscg version 'schily-0.9'.
> scsibus1:
>         1,0,0   100) 'MATSHITA' 'DVD-R   UJ-846  ' 'FM3J' Removable CD-ROM
>         1,1,0   101) *
>         1,2,0   102) *
>         1,3,0   103) *
>         1,4,0   104) *
>         1,5,0   105) *
>         1,6,0   106) *
>         1,7,0   107) *
> scsibus3:
>         3,0,0   300) 'SONY    ' 'Hi-MD WALKMAN   ' '1000' Removable Disk
>         3,1,0   301) *
>         3,2,0   302) *
>         3,3,0   303) *
>         3,4,0   304) *
>         3,5,0   305) *
>         3,6,0   306) *
>         3,7,0   307) *
> bash-3.2#
> 
> And, testing himdformat_scg:
> 
> bash-3.2# ./himdformat_scg 3,0,0
> Cannot open scsi driver.
> 
> Hmm?! Am I missing something? I'm calling this as root so it can't be
> a permissions thing.
> 
> I will continue to test anyway.
> 
> Adrian

Please use "strcpy(dev, argv[1]);" in line 42 of himdformat_scg.c 
instead of "memcpy(dev, argv[1], sizeof(argv[1]));".
Else the last char will be replaced by the terminating "\0" .

Sorry, i sent you the information before but i´ve forgotten to
send a patch.
You can also try himdscsitest.

Thomas