|
@@ -586,7 +586,7 @@ static void ide_tape_create_rw_cmd(idetape_tape_t *tape,
|
|
struct ide_atapi_pc *pc, struct request *rq,
|
|
struct ide_atapi_pc *pc, struct request *rq,
|
|
u8 opcode)
|
|
u8 opcode)
|
|
{
|
|
{
|
|
- unsigned int length = blk_rq_sectors(rq);
|
|
|
|
|
|
+ unsigned int length = blk_rq_sectors(rq) / (tape->blk_size >> 9);
|
|
|
|
|
|
ide_init_pc(pc);
|
|
ide_init_pc(pc);
|
|
put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]);
|
|
put_unaligned(cpu_to_be32(length), (unsigned int *) &pc->c[1]);
|