Skip to content
GitLab
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
00093474
Commit
00093474
authored
Apr 19, 2021
by
Steven Murray
Browse files
Removed deadwood method RmcProxy::writeRmcUnmountMsg()
parent
0b38f1e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
mediachanger/RmcProxy.cpp
View file @
00093474
...
...
@@ -159,23 +159,6 @@ MessageHeader RmcProxy::readRmcMsgHeader(const int fd) {
return
header
;
}
//-----------------------------------------------------------------------------
// writeRmcUnmountMsg
//-----------------------------------------------------------------------------
void
RmcProxy
::
writeRmcUnmountMsg
(
const
int
fd
,
const
RmcUnmountMsgBody
&
body
)
{
char
buf
[
RMC_MSGBUFSIZ
];
const
size_t
len
=
marshal
(
buf
,
body
);
try
{
writeBytes
(
fd
,
m_netTimeout
,
len
,
buf
);
}
catch
(
cta
::
exception
::
Exception
&
ne
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Failed to write RMC_SCSI_UNMOUNT message: "
<<
ne
.
getMessage
().
str
();
throw
ex
;
}
}
//-----------------------------------------------------------------------------
// rmcReplyTypeToStr
//-----------------------------------------------------------------------------
...
...
mediachanger/RmcProxy.hpp
View file @
00093474
...
...
@@ -141,15 +141,6 @@ protected:
*/
MessageHeader
readRmcMsgHeader
(
const
int
fd
)
;
/**
* Writes an RMC_SCSI_UNMOUNT message with the specifed body to the specified
* connection.
*
* @param fd The file descriptor of the connection.
* @param body The body of the message.
*/
void
writeRmcUnmountMsg
(
const
int
fd
,
const
RmcUnmountMsgBody
&
body
)
;
/**
* Sends the specified request to the rmcd daemon and receives the reply
* until success or the specified number of retriable attempts has been
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment