Skip to content
Snippets Groups Projects
Commit 34e7402b authored by Michael Davis's avatar Michael Davis Committed by Cedric Caffy
Browse files

[LTO_RAO] Adds physicalPositionInfo class

parent 854780a3
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,32 @@ namespace drive {
uint32_t dirtyBytesCount;
};
/**
* Physical position info.
*
* Returns the wrap (physical track) and LPOS (longitudinal
* position relative to the start of the wrap). If the wrap value is 0xFF,
* then the logical wrap number exceeds 254 and no further
* information is available. Otherwise, the physical direction
* can be detected from the lsb of the wrap.
*
* Returned by getPhysicalPositionInfo()
*/
class physicalPositionInfo {
public:
uint8_t wrap;
uint32_t lpos;
/**
* FORWARD means the current direction is away from the
* physical beginning of tape. REVERSE means the current
* direction is towards the physical beginning of tape.
*/
enum Direction_t { FORWARD, REVERSE };
Direction_t direction() {
return wrap & 1 ? REVERSE : FORWARD;
}
};
/**
* Logical block protection nformation, returned by getLBPInfo()
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment