Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
ab2c9ddc
Commit
ab2c9ddc
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused MmcProxyNotSupported
parent
51a5af96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mediachanger/CMakeLists.txt
+0
-1
0 additions, 1 deletion
mediachanger/CMakeLists.txt
mediachanger/MmcProxyNotSupported.cpp
+0
-57
0 additions, 57 deletions
mediachanger/MmcProxyNotSupported.cpp
mediachanger/MmcProxyNotSupported.hpp
+0
-79
0 additions, 79 deletions
mediachanger/MmcProxyNotSupported.hpp
with
0 additions
and
137 deletions
mediachanger/CMakeLists.txt
+
0
−
1
View file @
ab2c9ddc
...
...
@@ -40,7 +40,6 @@ set (MEDIACHANGER_LIB_SRC_FILES
MessageHeader.cpp
messages.cpp
MmcProxyLog.cpp
MmcProxyNotSupported.cpp
${
ProtoSources
}
RmcMarshal.cpp
RmcMarshal.hpp
...
...
This diff is collapsed.
Click to expand it.
mediachanger/MmcProxyNotSupported.cpp
deleted
100644 → 0
+
0
−
57
View file @
51a5af96
/*
* The CERN Tape Archive(CTA) project
* Copyright(C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*(at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"mediachanger/ManualLibrarySlot.hpp"
#include
"mediachanger/MmcProxyNotSupported.hpp"
#include
"common/exception/Exception.hpp"
//------------------------------------------------------------------------------
// mountTapeReadOnly
//------------------------------------------------------------------------------
void
cta
::
mediachanger
::
MmcProxyNotSupported
::
mountTapeReadOnly
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Manual mounting is not supported"
;
throw
ex
;
}
//------------------------------------------------------------------------------
// mountTapeReadWrite
//------------------------------------------------------------------------------
void
cta
::
mediachanger
::
MmcProxyNotSupported
::
mountTapeReadWrite
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Manual mounting is not supported"
;
throw
ex
;
}
//------------------------------------------------------------------------------
// dismountTape
//------------------------------------------------------------------------------
void
cta
::
mediachanger
::
MmcProxyNotSupported
::
dismountTape
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Manual dismounting is not supported"
;
throw
ex
;
}
//------------------------------------------------------------------------------
// forceDismountTape
//------------------------------------------------------------------------------
void
cta
::
mediachanger
::
MmcProxyNotSupported
::
forceDismountTape
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Manual dismounting is not supported"
;
throw
ex
;
}
This diff is collapsed.
Click to expand it.
mediachanger/MmcProxyNotSupported.hpp
deleted
100644 → 0
+
0
−
79
View file @
51a5af96
/*
* The CERN Tape Archive(CTA) project
* Copyright(C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*(at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include
"mediachanger/MediaChangerProxy.hpp"
namespace
cta
{
namespace
mediachanger
{
/**
* Concrete class implementing a manual media-changer that throws
* "not supported" exceptions.
*/
class
MmcProxyNotSupported
:
public
MediaChangerProxy
{
public:
/**
* Requests the media changer to mount the specified tape for read-only
* access into the drive in the specified library slot.
*
* Please note that this method provides a best-effort service because not all
* media changers support read-only mounts.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void
mountTapeReadOnly
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
override
;
/**
* Requests the media changer to mount the specified tape for read/write
* access into the drive in the specified library slot.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void
mountTapeReadWrite
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
override
;
/**
* Requests the media changer to dismount the specified tape from the
* drive in the specifed library slot.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void
dismountTape
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
override
;
/**
* Requests the media changer to forcefully dismount the specified tape from
* the drive in the specifed library slot. Forcefully means rewinding and
* ejecting the tape where necessary.
*
* Please note that this method provides a best-effort service because not all
* media changers support forceful dismounts.
*
* @param vid The volume identifier of the tape.
* @param librarySlot The library slot containing the tape drive.
*/
void
forceDismountTape
(
const
std
::
string
&
vid
,
const
LibrarySlot
&
librarySlot
)
override
;
};
// class MmcProxyNotSupported
}
// namespace mediachanger
}
// namespace cta
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment