• Borislav Petkov's avatar
    ide-tape: fix potential fs requests bug · 10c0b343
    Borislav Petkov authored
    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: default avatarBorislav Petkov <petkovbb@gmail.com>
    10c0b343
ide-tape.c 55.4 KB