Skip to content

Commit ad77ceb

Browse files
kmakisaramartinkpetersen
authored andcommitted
scsi: st: ERASE does not change tape location
The SCSI ERASE command erases from the current position onwards. Don't clear the position variables. Signed-off-by: Kai Mäkisara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a018d1c commit ad77ceb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/st.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,6 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon
29152915
timeout = STp->long_timeout * 8;
29162916

29172917
DEBC_printk(STp, "Erasing tape.\n");
2918-
fileno = blkno = at_sm = 0;
29192918
break;
29202919
case MTSETBLK: /* Set block length */
29212920
case MTSETDENSITY: /* Set tape density */

0 commit comments

Comments
 (0)