From 4be10451005fd11e86584b246a7555120b93fada Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Sat, 26 Oct 2024 20:56:17 +0200 Subject: [PATCH] Update tape block size handling --- cpp/devices/tape.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/devices/tape.cpp b/cpp/devices/tape.cpp index 4c916c5d..b18e252a 100644 --- a/cpp/devices/tape.cpp +++ b/cpp/devices/tape.cpp @@ -274,7 +274,8 @@ vector 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> &pages, int page, bool changeable) const