]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: st: Add sysfs file position_lost_in_reset
authorKai Mäkisara <Kai.Makisara@kolumbus.fi>
Sat, 1 Feb 2025 15:11:06 +0000 (17:11 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Feb 2025 22:51:31 +0000 (17:51 -0500)
commit2c445d5f832a51dfd8527fcce7323f79d37c0432
tree098cb3766a58f5cb2531a398411aaffe8798e070
parent341128dfe10a7c8681d86e81b5bc63902da644ef
scsi: st: Add sysfs file position_lost_in_reset

If the value read from the file is 1, reads and writes from/to the device
are blocked because the tape position may not match user's expectation
(tape rewound after device reset).

Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://lore.kernel.org/r/20250201151106.25529-1-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>
Documentation/scsi/st.rst
drivers/scsi/st.c