Commit b3c616bd authored by Eric Cano's avatar Eric Cano
Browse files

Added state diagram for tape sessions.

parent 39707dcb
\chapter{Tape Sessions and other sub-processes}
The program {\tt cta-taped} is a daemon managing the tape drive and transferring data from tape to drive. The daemon is split in two levels of processes: the daemon process, which is a single threaded sub-process manager, which does not have any external connectivity. The sub-processes can be multi-threaded, and implement external connectivity. Two types of sub-processes implement different kinds of functionality.
\section{Drive sub-process}
The main sub-process is the drive sub-process. One such sub-process will be launched per drive in the tape server. The drive process executes one mount and then exits. The daemon then restarts a new instance of it, passing the previous instances exit status. Based on this status of the previous run, the session could either become a cleaning session, where any potentially still mounted tape is removed from the drive, or start scheduling. Scheduling can lead to archive, retrieve or label sessions.
The tape session types and state changes are shown in figure \ref{statediag}.
\caption{\label{statediag}Tape sessions state diagram}
No preview for this file type
......@@ -10,7 +10,7 @@
% Note about the package tikz-uml: This package is not part of some latex distributions (like tex live), and we are using a recent copy of it. It can be downloaded from the author's web page:
......@@ -1546,6 +1546,8 @@ For most commands there is a short version and a long one. Due to the limited nu
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