Skip to content
Snippets Groups Projects
Commit 8038e645 authored by Kai Makisara's avatar Kai Makisara Committed by Martin K. Petersen
Browse files

st: Fix MTMKPART to work with newer drives


Change the MTMKPART operation of the MTIOCTOP ioctl so that it works
also with current drives (LTO-5/6, etc.). Send a separate FORMAT MEDIUM
command if the partition mode page indicates that this is required. Use
LOAD to position the tape at the beginning of tape.

The operation is extended so that if the argument is negative, its
absolute value specifies the size of partition 0, which is the
physically first partition of the tape.

Signed-off-by: default avatarKai Mäkisara <kai.makisara@kolumbus.fi>
Tested-by: default avatarShane M Seymour <shane.seymour@hpe.com>
Tested-by: default avatarLaurence Oberman <loberman@redhat.com>
Tested-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ea1c928b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment