Commit 769a4af
committed
scsi: st: Add MTIOCGET and MTLOAD to ioctls allowed after device reset
jira LE-2289
Rebuild_History Non-Buildable kernel-4.18.0-553.36.1.el8_10
commit-author Kai Mäkisara <[email protected]>
commit 0b120ed
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 <[email protected]>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219419#c14
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: John Meneghini <[email protected]>
Tested-by: John Meneghini <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
(cherry picked from commit 0b120ed)
Signed-off-by: Jonathan Maple <[email protected]>1 parent f76c508 commit 769a4af
1 file changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3504 | 3504 | | |
3505 | 3505 | | |
3506 | 3506 | | |
| 3507 | + | |
3507 | 3508 | | |
3508 | 3509 | | |
3509 | 3510 | | |
| |||
3618 | 3619 | | |
3619 | 3620 | | |
3620 | 3621 | | |
| 3622 | + | |
3621 | 3623 | | |
3622 | 3624 | | |
3623 | 3625 | | |
| |||
3731 | 3733 | | |
3732 | 3734 | | |
3733 | 3735 | | |
| 3736 | + | |
| 3737 | + | |
3734 | 3738 | | |
3735 | | - | |
3736 | | - | |
3737 | | - | |
3738 | | - | |
3739 | | - | |
3740 | | - | |
3741 | | - | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
3742 | 3755 | | |
3743 | 3756 | | |
3744 | | - | |
| 3757 | + | |
3745 | 3758 | | |
3746 | 3759 | | |
3747 | 3760 | | |
| |||
0 commit comments