]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: st: ERASE does not change tape location
authorKai Mäkisara <Kai.Makisara@kolumbus.fi>
Tue, 11 Mar 2025 11:25:15 +0000 (13:25 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Mar 2025 02:04:22 +0000 (22:04 -0400)
The SCSI ERASE command erases from the current position onwards.  Don't
clear the position variables.

Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://lore.kernel.org/r/20250311112516.5548-3-Kai.Makisara@kolumbus.fi
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/st.c

index 756b7c86231812f5a9f62314c2aa8d65174ae252..fda79758101974c9cedfb1427ad115cae2f068dc 100644 (file)
@@ -2915,7 +2915,6 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon
                        timeout = STp->long_timeout * 8;
 
                DEBC_printk(STp, "Erasing tape.\n");
-               fileno = blkno = at_sm = 0;
                break;
        case MTSETBLK:          /* Set block length */
        case MTSETDENSITY:      /* Set tape density */