]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/tape: Remove special block id handling
authorJan Höppner <hoeppner@linux.ibm.com>
Mon, 2 Feb 2026 13:48:41 +0000 (14:48 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 4 Feb 2026 07:31:29 +0000 (08:31 +0100)
commit28da74c2943972168976d58ef5a1dc2b5493e890
tree002e57e8262d95c68a1883d0a66a896fb3e99b37
parenteffcf3df282ba66e60718cefd08c6a3ed57d9dd3
s390/tape: Remove special block id handling

For real 3490 tape models a logical block was composed of a direction
bit (wrap), a segment number, a format mode, and a logical block number.
This is represented in a 4byte identifier.

The Virtual Tape Server (VTS) emulates 3490 tape devices and uses a
stripped block id format where bit 0-9 of the 4byte identifier are
always 0. Bit 10-31 represent the logical block number.

All tapes use the 3480-2 XF format, which was defined via
TAPE34XX_FMT_3480_2_XF but never used. There is also no special handling
required anymore as this is the only format being used.

Since VTS doesn't require any special handling of block ids and format,
corresponding code is removed.

Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/tape.h
drivers/s390/char/tape_34xx.c