Commit 6e9d677
Ewan D. Milne
scsi: st: Add MTIOCGET and MTLOAD to ioctls allowed after device reset
JIRA: https://issues.redhat.com/browse/RHEL-124946
Upstream Status: From upstream linux mainline
Most drives rewind the tape when the device is reset. Reading and writing
are not allowed until something is done to make the tape position match the
user's expectation (e.g., rewind the tape). Add MTIOCGET and MTLOAD to
operations allowed after reset. MTIOCGET is modified to not touch the tape
if pos_unknown is non-zero. The tape location is known after MTLOAD.
Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219419#c14
Link: https://lore.kernel.org/r/20241106095723.63254-3-Kai.Makisara@kolumbus.fi
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Tested-by: John Meneghini <jmeneghi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 0b120ed)
Signed-off-by: Ewan D. Milne <emilne@redhat.com>1 parent 4c41743 commit 6e9d677
1 file changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3528 | 3528 | | |
3529 | 3529 | | |
3530 | 3530 | | |
| 3531 | + | |
3531 | 3532 | | |
3532 | 3533 | | |
3533 | 3534 | | |
| |||
3641 | 3642 | | |
3642 | 3643 | | |
3643 | 3644 | | |
| 3645 | + | |
3644 | 3646 | | |
3645 | 3647 | | |
3646 | 3648 | | |
| |||
3768 | 3770 | | |
3769 | 3771 | | |
3770 | 3772 | | |
| 3773 | + | |
| 3774 | + | |
3771 | 3775 | | |
3772 | | - | |
3773 | | - | |
3774 | | - | |
3775 | | - | |
3776 | | - | |
3777 | | - | |
3778 | | - | |
| 3776 | + | |
| 3777 | + | |
| 3778 | + | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
3779 | 3792 | | |
3780 | 3793 | | |
3781 | | - | |
| 3794 | + | |
3782 | 3795 | | |
3783 | 3796 | | |
3784 | 3797 | | |
| |||
0 commit comments