Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
34e7402b
Commit
34e7402b
authored
5 years ago
by
Michael Davis
Committed by
Cedric Caffy
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[LTO_RAO] Adds physicalPositionInfo class
parent
854780a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tapeserver/castor/tape/tapeserver/drive/DriveInterface.hpp
+26
-0
26 additions, 0 deletions
tapeserver/castor/tape/tapeserver/drive/DriveInterface.hpp
with
26 additions
and
0 deletions
tapeserver/castor/tape/tapeserver/drive/DriveInterface.hpp
+
26
−
0
View file @
34e7402b
...
...
@@ -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()
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment