Commit 6802dc47 authored by Steven Murray's avatar Steven Murray
Browse files

Removed unused mountTape() and umountTape() from LabelSession

parent feb107c9
......@@ -114,23 +114,14 @@ std::auto_ptr<castor::tape::drives::DriveInterface>
// check that drive is not write protected
if(drive->isWriteProtected()) {
castor::exception::Exception ex;
ex.getMessage() << "End session with error. Drive is write protected. Aborting labelling...";
ex.getMessage() <<
"End session with error. Drive is write protected. Aborting labelling...";
throw ex;
}
return drive;
}
//------------------------------------------------------------------------------
// mountTape
//------------------------------------------------------------------------------
void castor::tape::tapeserver::daemon::LabelSession::mountTape() {
// Let's mount the tape now
m_rmc.mountTape(m_request.vid, m_driveConfig.librarySlot,
castor::legacymsg::RmcProxy::MOUNT_MODE_READWRITE);
}
//------------------------------------------------------------------------------
// waitUntilDriveReady
//------------------------------------------------------------------------------
......@@ -202,7 +193,8 @@ void castor::tape::tapeserver::daemon::LabelSession::executeLabel() {
log::Param params[] = {log::Param("message", ex.getMessage().str())};
m_log(LOG_ERR, "The tape could not be labelled", params);
try {
legacymsg::writeTapeReplyMsg(m_timeout, m_labelCmdConnection, 1, ex.getMessage().str());
legacymsg::writeTapeReplyMsg(m_timeout, m_labelCmdConnection, 1,
ex.getMessage().str());
} catch (...) {}
clientNotified=true;
}
......
......@@ -110,12 +110,8 @@ namespace daemon {
std::auto_ptr<castor::tape::drives::DriveInterface> getDriveObject();
/**
* Mounts the tape to be lablled.
*/
void mountTape();
/**
* Check the tape drive write-ability and waits for it to become ready (tape needs to be loaded)
* Check the tape drive write-ability and waits for it to become ready
* (tape needs to be loaded)
* @param drive The drive object pointer
* @return
*/
......@@ -128,14 +124,6 @@ namespace daemon {
*/
void labelTheTape(castor::tape::drives::DriveInterface *drive);
/**
* Unmounts the requested VID in the tape drive specified in the configuration line
* @param driveConfig The configuration of the tape drive to be used to
* label a tape.
* @return
*/
void unmountTape(const utils::DriveConfig &driveConfig);
/**
* The object representing the rmcd daemon.
*/
......
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