Commit 8067e293 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 1b81b468
...@@ -118,6 +118,7 @@ void castor::tape::tapeserver::daemon::CleanerSession::cleanDrive(drive::DriveIn ...@@ -118,6 +118,7 @@ void castor::tape::tapeserver::daemon::CleanerSession::cleanDrive(drive::DriveIn
unloadTape(volumeLabelVSN, drive); unloadTape(volumeLabelVSN, drive);
dismountTape(volumeLabelVSN); dismountTape(volumeLabelVSN);
drive.disableLogicalBlockProtection();
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -158,6 +158,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction ...@@ -158,6 +158,7 @@ castor::tape::tapeserver::daemon::Session::EndOfSessionAction
} }
unloadTape(m_request.vid, drive); unloadTape(m_request.vid, drive);
dismountTape(m_request.vid); dismountTape(m_request.vid);
drive.disableLogicalBlockProtection();
return MARK_DRIVE_AS_UP; return MARK_DRIVE_AS_UP;
} }
......
...@@ -90,6 +90,7 @@ castor::tape::tapeserver::daemon::TapeReadSingleThread::TapeCleaning::~TapeClean ...@@ -90,6 +90,7 @@ castor::tape::tapeserver::daemon::TapeReadSingleThread::TapeCleaning::~TapeClean
currentErrorToCount = "Error_tapeDismount"; currentErrorToCount = "Error_tapeDismount";
m_this.m_rrp.reportDriveStatus(cta::common::DriveStatus::Unmounting); 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_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_rrp.reportDriveStatus(cta::common::DriveStatus::Up);
m_this.m_stats.unmountTime += m_timer.secs(castor::utils::Timer::resetCounter); 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() ? m_this.m_logContext.log(LOG_INFO, mediachanger::TAPE_LIBRARY_TYPE_MANUAL != m_this.m_drive.config.getLibrarySlot().getLibraryType() ?
......
...@@ -140,6 +140,7 @@ private: ...@@ -140,6 +140,7 @@ private:
currentErrorToCount = "Error_tapeDismount"; currentErrorToCount = "Error_tapeDismount";
m_this.m_reportPacker.reportDriveStatus(cta::common::DriveStatus::Unmounting); 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_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_reportPacker.reportDriveStatus(cta::common::DriveStatus::Up);
m_this.m_stats.unmountTime += m_timer.secs(castor::utils::Timer::resetCounter); 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() ? m_this.m_logContext.log(LOG_INFO, mediachanger::TAPE_LIBRARY_TYPE_MANUAL != m_this.m_drive.config.getLibrarySlot().getLibraryType() ?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment