Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement stub support for additional tape commands to avoid I/O errors #211

Open
aperezbios opened this issue May 18, 2023 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@aperezbios
Copy link
Collaborator

@PetteriAimonen, I did some basic SCSI tape testing with 'mt' under Linux, and identified eight commands that immediately induce an I/O error. The erase command is probably the most critical, followed by the compression command. These should probably all be no-ops for now. Do you have an opinion?

[root@PW490 ~]# mt -f /dev/st0 fsf
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 fsfm
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 bsf
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 bsfm
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 bsr
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 tell
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 erase
/dev/st0: Input/output error
[root@PW490 ~]# mt -f /dev/st0 compression
/dev/st0: Input/output error
@aperezbios aperezbios added the bug Something isn't working label May 18, 2023
@aperezbios aperezbios added enhancement New feature or request and removed bug Something isn't working labels May 26, 2023
@sapperlott
Copy link

One candidate for an existing variable length record tape image format to use could be AWSTAPE which is used by the Hercules mainframe emulator. It already comes with a tool called "tapecopy" which can copy between AWSTAPE image files and real tapes. Its source can be used as an example to understand how the format is used:
https://github.com/SDL-Hercules-390/hyperion/blob/master/tapecopy.c

While Hercules provides an open source implementation of the format, it originates from IBM and has been used in their virtual tape libraries for a long time. So there's probably a lot of tape images already out there in that format.

@aperezbios
Copy link
Collaborator Author

Great. Thanks for the suggestion, @sapperlott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants