#include <hallo.h> * Ian McDonald [Tue, Jan 23 2007, 01:05:40PM]: > On 23/01/07, Eduard Bloch <[EMAIL PROTECTED]> wrote: > >* Ian McDonald [Sun, Jan 21 2007, 06:57:48PM]: > > > >> Here is the output from lsusb -vv: > >> Bus 005 Device 004: ID 05e3:0701 Genesys Logic, Inc. USB 2.0 IDE Adapter > > > >> SCSI buffer size: 64512 > > > >I am not happy seeing these two things together. I remember there are > >Genesys chipsets which have limited transfer size, max. 32kib. I > >implemented a workaround which looks in sysfs to retrieve the real > >transfer size, but it relies on correct information displayed in the > >sysfs. Please show the contents of this commands: > > > >$ find /sys/ |grep max_hw_secto > >$ find /sys/ |grep max_hw_secto | xargs cat > > > [EMAIL PROTECTED]:~$ find /sys/ | grep max_hw_secto > /sys/block/sr0/queue/max_hw_sectors_kb > /sys/block/fd0/queue/max_hw_sectors_kb > /sys/block/hdd/queue/max_hw_sectors_kb > /sys/block/hdc/queue/max_hw_sectors_kb > /sys/block/sda/queue/max_hw_sectors_kb > /sys/block/hda/queue/max_hw_sectors_kb > [EMAIL PROTECTED]:~$ find /sys/ | grep max_hw_secto | xargs cat > 32 > 32 > 128 > 128 > 32767 > 128 > > The drive is sr0 so this would seem to back up your theory. It isn't > however pulling it out of the system and modifying it I would guess??
Crap. My sysfs fishing code does not work with kernel 2.6.20 when generic scsi devices have been used, including using fake SCSI numbers which are mapped to them, because /sys/class/scsi_generic/sg0/queue symlink is missing. I am sure I have tested it with kernel 2.6.18 or 2.6.19 some weeks ago. I need to have a closer look at it. IIRC Schilling moved some kernel developer to implement an ioctl to retreive such info directly, maybe it is working now. Or I could try another path in the sysfs leading to this info but traversing it sucks even more. > I'm not sure how to drive wodim manually as using k3b as my front end. > The above data does seem to confirm your theory. If you really want me > to test still I'll try and understand how to drive from command line. The simplest way would be: cd /usr/bin rm cdrecord editor cdrecord insert: #!/bin/sh exec wodim ts=16000 "$@" save the file chmod a+x cdrecord MfG, Eduard. -- <florian> kennt sich einer mit php aus <frobnic> nein <Wulf> florian: genug um zu wissen, dass man es nicht benutzen will <Joey> florian: Wieviel Schmerzensgeld zahlst Du? <florian> lol werd ich denn heut von jeden dumm angemacht <frobnic> unwahrscheinlich, da fehlen noch so ~180 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

