ide-tape: fix potential fs requests bug
authorBorislav Petkov <petkovbb@gmail.com>
Fri, 1 May 2009 18:29:53 +0000 (20:29 +0200)
committerBorislav Petkov <petkovbb@gmail.com>
Fri, 15 May 2009 04:43:45 +0000 (06:43 +0200)
ide-tape had a potential bug for fs requests when preparing the command
packet: it was writing the transfer length as a number of fixed blocks.
However, the block layer implies 512 byte blocks and ide-tape can have
other block sizes so account for that too.

ide-floppy does this calculation properly with the block size factor
(floppy->bs_factor).

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>

No differences found