Skip to content

Commit

Permalink
Update tape block size handling
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 26, 2024
1 parent 8feac38 commit 4be1045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/devices/tape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ vector<uint8_t> Tape::InquiryInternal() const
int Tape::VerifyBlockSizeChange(int requested_size, bool temporary) const
{
// Special handling of block size 0 for sequential-access devices, according to the SCSI-2 specification
return requested_size || !temporary ? StorageDevice::VerifyBlockSizeChange(requested_size, temporary) : 0;
return
requested_size || !temporary ? StorageDevice::VerifyBlockSizeChange(requested_size, temporary) : GetBlockSize();
}

void Tape::SetUpModePages(map<int, vector<byte>> &pages, int page, bool changeable) const
Expand Down

0 comments on commit 4be1045

Please sign in to comment.