Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
485a123f
Commit
485a123f
authored
Dec 19, 2017
by
Steven Murray
Browse files
Removed LabelSessionConfig::createFromCastorConf()
parent
415b99d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/daemon/LabelSessionConfig.cpp
View file @
485a123f
...
@@ -31,25 +31,3 @@ castor::tape::tapeserver::daemon::LabelSessionConfig::LabelSessionConfig()
...
@@ -31,25 +31,3 @@ castor::tape::tapeserver::daemon::LabelSessionConfig::LabelSessionConfig()
throw
()
:
throw
()
:
useLbp
(
false
)
{
useLbp
(
false
)
{
}
}
//------------------------------------------------------------------------------
// createFromCastorConf
//------------------------------------------------------------------------------
castor
::
tape
::
tapeserver
::
daemon
::
LabelSessionConfig
castor
::
tape
::
tapeserver
::
daemon
::
LabelSessionConfig
::
createFromCastorConf
(
cta
::
log
::
Logger
*
const
log
)
{
common
::
CastorConfiguration
&
castorConf
=
common
::
CastorConfiguration
::
getConfig
();
LabelSessionConfig
config
;
const
std
::
string
useLBP
=
castorConf
.
getConfEntString
(
"TapeServer"
,
"UseLogicalBlockProtection"
,
"no"
);
if
(
!
strcasecmp
(
useLBP
.
c_str
(),
"yes"
)
||
!
strcmp
(
useLBP
.
c_str
(),
"1"
))
{
config
.
useLbp
=
true
;
}
else
{
config
.
useLbp
=
false
;
}
return
config
;
}
tapeserver/castor/tape/tapeserver/daemon/LabelSessionConfig.hpp
View file @
485a123f
...
@@ -49,16 +49,6 @@ struct LabelSessionConfig {
...
@@ -49,16 +49,6 @@ struct LabelSessionConfig {
*/
*/
LabelSessionConfig
()
throw
();
LabelSessionConfig
()
throw
();
/**
* Returns a configuration structure based on the contents of
* /etc/castor/castor.conf and compile-time constants.
*
* @param log pointer to NULL or an optional logger object.
* @return The configuration structure.
*/
static
LabelSessionConfig
createFromCastorConf
(
cta
::
log
::
Logger
*
const
log
=
NULL
);
};
// LabelSessionConfig
};
// LabelSessionConfig
}
// namespace daemon
}
// namespace daemon
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment