diff options
author | Kai Mäkisara <Kai.Makisara@kolumbus.fi> | 2024-11-06 11:57:22 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-11-06 21:18:15 -0500 |
commit | 0b120edb37dc9dd8ca82893d386922eb6b16f860 (patch) | |
tree | d7e0b38db79228da0d26ff5b643a3056123ce872 /rust/helpers/workqueue.c | |
parent | 5bb2d6179d1a8039236237e1e94cfbda3be1ed9e (diff) | |
download | linux-0b120edb37dc9dd8ca82893d386922eb6b16f860.tar.gz linux-0b120edb37dc9dd8ca82893d386922eb6b16f860.tar.bz2 linux-0b120edb37dc9dd8ca82893d386922eb6b16f860.zip |
scsi: st: Add MTIOCGET and MTLOAD to ioctls allowed after device reset
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>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions