[PATCH] "mt-st tell" fails in 2.6.10-rc1
On Tue, 2 Nov 2004, Marc Thomas wrote: > I've noticed that in 2.6.10-rc1 the "mt tell" command (from mt-st) fails to > report SCSI tape position, returning "No such device". Other tape (read) > operations appear to be ok. It worked fine in 2.6.9-rc4. The patch at the end of this message should fix this (passes basic tests). Someone added the ioctl to reset the SCSI device but the error handling is not quite correct. The code in 2.6.10-rc1 allows st_ioctl to continue unless reset succeeded. The fix allows continuation only if scsi_nonblockable_ioctl() does not handle the ioctl (returns -ENODEV). retval is cleared because the following code assumes it is zero unless set to something else. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Showing
Please register or sign in to comment