Skip to content
Snippets Groups Projects
Commit d05d5170 authored by Julien Leduc's avatar Julien Leduc
Browse files

0001-CASTOR-5279-Logical-Block-Protection-support-in-the-.patch...

0001-CASTOR-5279-Logical-Block-Protection-support-in-the-.patch 1ab9f7b0408b85ec4660e75f3259ef8b7c21f8c1 TO REVIEW?
parent 1b3661bc
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,7 @@ void castor::tape::tapeserver::daemon::CleanerSession::cleanDrive(drive::DriveIn
unloadTape(volumeLabelVSN, drive);
dismountTape(volumeLabelVSN);
drive.disableLogicalBlockProtection();
}
//------------------------------------------------------------------------------
......
......@@ -158,6 +158,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
}
unloadTape(m_request.vid, drive);
dismountTape(m_request.vid);
drive.disableLogicalBlockProtection();
return MARK_DRIVE_AS_UP;
}
......
......@@ -90,6 +90,7 @@ castor::tape::tapeserver::daemon::TapeReadSingleThread::TapeCleaning::~TapeClean
currentErrorToCount = "Error_tapeDismount";
m_this.m_rrp.reportDriveStatus(cta::common::DriveStatus::Unmounting);
m_this.m_mc.dismountTape(m_this.m_volInfo.vid, m_this.m_drive.config.getLibrarySlot());
m_this.m_drive.disableLogicalBlockProtection();
m_this.m_rrp.reportDriveStatus(cta::common::DriveStatus::Up);
m_this.m_stats.unmountTime += m_timer.secs(castor::utils::Timer::resetCounter);
m_this.m_logContext.log(LOG_INFO, mediachanger::TAPE_LIBRARY_TYPE_MANUAL != m_this.m_drive.config.getLibrarySlot().getLibraryType() ?
......
......@@ -140,6 +140,7 @@ private:
currentErrorToCount = "Error_tapeDismount";
m_this.m_reportPacker.reportDriveStatus(cta::common::DriveStatus::Unmounting);
m_this.m_mc.dismountTape(m_this.m_volInfo.vid, m_this.m_drive.config.getLibrarySlot());
m_this.m_drive.disableLogicalBlockProtection();
m_this.m_reportPacker.reportDriveStatus(cta::common::DriveStatus::Up);
m_this.m_stats.unmountTime += m_timer.secs(castor::utils::Timer::resetCounter);
m_this.m_logContext.log(LOG_INFO, mediachanger::TAPE_LIBRARY_TYPE_MANUAL != m_this.m_drive.config.getLibrarySlot().getLibraryType() ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment