mt-st eod
command ultimately sends SCSI SPACE
command to the drive regardless of fast-eod
option. According to LTO SCSI reference, there are two parameters for this operation: CODE and COUNT.
CODE specifies the type of termination point of the operation, as shown below. For example, if CODE=3h, then LTO drive moves the tape forward until reaching EOD.
- 0h : Block
- 1h : Filemarks
- 3h : EOD
COUNT is the number of logical objects to be spaced. This parameter will be ignored if CODE=3h. Even with CODE=0h or 1h, the operation is terminated at the EOD position if the drive encounters EOD while processing the command.
According to Linux tape driver, here are the parameters to be used depending on fast-eod
option:
- Enabled : CODE=3h
- Disabled : CODE=1h and COUNT=8,388,607 (0x7fffff)
Thus, tape drive stops at the EOD potions regardless of Enabled/Disabled. The biggest question is that CODE=3h
is faster than CODE=1h and COUNT=8388607
? Here is a direct quote from Bacula document.
I just expect, that for older tape drives Filemarks may be slower than End-of-data, but not so much as in Solaris slow mode.