Skip to content

SCSI tape read fixes#6899

Merged
OBattler merged 1 commit into
masterfrom
TC1995
Mar 9, 2026
Merged

SCSI tape read fixes#6899
OBattler merged 1 commit into
masterfrom
TC1995

Conversation

@TC1995

@TC1995 TC1995 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  1. Read Block Limits now has the len variable set instead of directly using a magic number, as well as setting the buflen pointer.
  2. On some SCSI controllers, the buffer length isn't automatic (so it gets set to -1 until being allocated and set again properly) so adjust the read 6 command to set the total bytes as the allocated buffer length when fixed block mode is set as well as when either filemark or eod are set. This fixes hang ups when using some SCSI controllers with the Archive tape drive.

Checklist

References

Archive Viper SCSI

1. Read Block Limits now has the len variable set instead of directly using a magic number, as well as setting the buflen pointer.
2. On some SCSI controllers, the buffer length isn't automatic (so it gets set to -1 until being allocated and set again properly) so adjust the read 6 command to set the total bytes as the allocated buffer length when fixed block mode is set as well as when either filemark or eod are set. This fixes hang ups when using some SCSI controllers with the Archive tape drive.
@OBattler OBattler merged commit e504e3e into master Mar 9, 2026
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants