On Tue 13 Jan 2004 1:31 pm, Doug Holland wrote:
On Tue 13 Jan 2004 11:35 am, Peter Osterlund wrote:
I don't know yet, but I have the same problem on one of my IDE drives (Sony CRX175A). I only have a problem when using native ide support in a 2.6 kernel. In 2.4 the drive works with both native ide and scsi emulation, and it also works with scsi emulation in 2.6.
I have another IDE drive (HP 8100) on the same ide channel which works perfectly with native ide in 2.6, so it can't be that packet writing using native ide is completely broken in 2.6.
It looks like I/O requests sent from the packet driver to the ide driver get shifted 4 sectors. In the log file below, the requested sectors (the numbers within parenthesis on the pkt_gather_data lines) exactly match the reported read sectors (in pkt_end_io_read), except for the 4 sector offset.
I also get an "access beyond end of device" if I try to access the last sector on the disc, so it seems like the offset is added before the actual I/O operation starts.
run_state_machine: pkt 5 pkt_gather_data: Adding frame 0 (120500), page:c1098f80 offs:0 pkt_gather_data: Adding frame 1 (120504), page:c1098f80 offs:2048
...
-- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
Weird. I'm gonna try again using my older HP 9100, see if it behaves a little better.
I would really like to avoid turning on SCSI emulation - it's always been a pain for me to set up, and my drives otherwise work fine without it.
Thanks for the help,
Doug
I just tried again with the HP 9100, got the same errors. Another strange behavior... After I copy some files to the disk, after I umount and remount it, and do an ls -al, I get the following: $ ls -l /cdrw ls: /cdrw/climbatize.mp3: Permission denied ls: /cdrw/smack_my_bitch_up.mp3: Permission denied total 51710 -rw------- 1 root root 6706539 Jan 13 13:50 breathe.mp3 -rw------- 1 root root 5144939 Jan 13 13:50 diesel_power.mp3 -rw------- 1 root root 5617755 Jan 13 13:50 firestarter.mp3 -rw------- 1 root root 5182033 Jan 13 13:50 fuel_my_fire.mp3 -rw------- 1 root root 6330898 Jan 13 13:50 funky_shit.mp3 drwxr-xr-x 2 root root 40 Jan 13 12:28 lost+found -rw------- 1 root root 6808416 Jan 13 13:50 mindfields.mp3 -rw------- 1 root root 10921135 Jan 13 13:50 narayan.mp3 -rw------- 1 root root 6228498 Jan 13 13:50 serial_thrilla.mp3 I guess those two files got mangled.