本节致力于 结束媒体(EOM)的处理。 下图是标识了所有 EOM 可以会出现的点的 1.0 版本的数据集格式。 接下来的是每种情况的原始和续集媒介的图以及简要的解释了如何写原始和续集媒介。

在开始详细解释各种情是怎么处理之前,有几个通用的概念需要说明。
“普通的 EOM 处理”由卷标,MTF_EOTM 和另一个卷标组成, 然后获取续集磁带并且写入一个在属性中设置了 continuation bit set 的磁带头并且接着写入一个卷标。 在下列的情况中,任何与这个处理不一致的地方都会指出来。
下面的显示中只有 MTF_FILE 有关联的数据,但是处理与任意的 DBLK 关联的数据的方法都是类似的。 注意到 MTF_SSET,MTF_VOLB 和 MTF_DIRB 块可以在续集磁带中重复是很重要的(即使它们不是当前处理的块),在续集中需要设置 continuation 比特。 这是因为它们包含了用于从续集磁中读取和恢复数据的信息,而不用数据管理操作开始的时候的那个磁带。 然而,如果它们有任何的关联数据,这些数据不需要重复,只需要将数据的大小设置为 0。
EOM 的切分通常是发生在 FLB 边界的。 为了 EOM 处理的目的,镜像块和数据会和 MTF_FILE 块和数据一样处理。
注意:在下面的所有图中,'*' 表示 DBLK 中的 MTF_DB_HDR 的 Block Attributes 字段设置 MTF_CONTINUATION 比特。






The following diagram is an example of an MTF Version 1.00a format Data Set with Media Based Catalogs (MBC) showing
marks at all unique points at which EOM early warning may be detected. This is followed by diagrams and brief explanations
of what is written on the original and continuation tapes is each case. Note that the MBC lies between the two filemarks at the
end of the set, and all EOM cases outside of MBC are handled in the same manner as with tapes which do not have MBC as
specified above. Cases a, g, and h are shown below to relate this diagram to the non-MBC diagram above. Cases k - q are
specific to MBC and detailed below.
There are some further general concepts which need to be explained before detailing the MBC cases.
In all cases, the MTF_EOTM will contain the physical block address of the second MTF_ESET of the last set which finished
completely (including MBC) on the tape. Attribute bits will be defined to indicate whether the address field is invalid (not
supported by drive or no MBC on tape), and to indicate if no ending MTF_ESET exists on the tape (i.e. one set spans the entire
tape).
What will be referred to as "normal EOM processing" for MBC cases consists of writing a filemark, an End Of Tape Marker
(MTF_EOTM) block and another filemark, getting a continuation tape and writing a tape header with the continuation bit set in
its attribute field followed by a filemark, then writing the MTF_SSET with continuation bit set, another filemark, and finally
the starting MTF_ESET with continuation bit set. Any exceptions to this process will be noted in the detail for that case.
File/Directory Data will be referred to as FDD, and the Set Map as SM.