Skip to content
Snippets Groups Projects
Commit 4a73a87f authored by Steven Murray's avatar Steven Murray
Browse files

bug #103642: Remove the deltpfil() function

With this commit the logic replacing the deltpfile() function now only logs an
appropriate message and then allows the rtcp child process to end the current
tape session gracefully.
parent 59b9e758
No related branches found
No related tags found
No related merge requests found
...@@ -708,18 +708,21 @@ int tcloserr(int fd, tape_list_t *tape, file_list_t *file) { ...@@ -708,18 +708,21 @@ int tcloserr(int fd, tape_list_t *tape, file_list_t *file) {
/* flushes. */ /* flushes. */
/* */ /* */
/* The new safe course of action is to log a message stating that the */ /* The new safe course of action is to log a message stating that the */
/* tape may be incorrectly terminated and to then exit the rtcpd child */ /* tape may be incorrectly terminated and to then let the rtcpd child */
/* process immediately with an exit value of -1. The child process is */ /* process gracefully finish the current tape session. Among other */
/* exited immediately in order to eliminate the chance of the process */ /* benefits, letting the session end gracefully gives the rtcpd child */
/* trying to continue to write to a tape and drive that are now in */ /* process a chance to send a TAPE OVERFLOW error to its client when */
/* undefined or poorly defined states. */ /* writing has reached the physical end of a tape. This in turn */
/* allows the client to notify the vmgrd daemon that the tape in */
/* question is FULL. */
rtcp_log(LOG_ERR, rtcp_log(LOG_ERR,
"Aborting and maybe leaving the tape incorrectly terminated\n"); "Gracefully ending tape session and maybe leaving the tape"
" incorrectly terminated\n");
tl_rtcpd.tl_log( &tl_rtcpd, 3, 2, tl_rtcpd.tl_log( &tl_rtcpd, 3, 2,
"func" , TL_MSG_PARAM_STR, "tcloserr", "func" , TL_MSG_PARAM_STR, "tcloserr",
"Message", TL_MSG_PARAM_STR, "Message", TL_MSG_PARAM_STR,
"Aborting and maybe leaving the tape incorrectly terminated"); "Gracefully ending tape session and maybe leaving the tape"
exit(-1); " incorrectly terminated");
} }
} }
(void) close(fd) ; (void) close(fd) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment