Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
53431adf
Commit
53431adf
authored
Apr 27, 2020
by
Michael Davis
Committed by
Cedric Caffy
Sep 25, 2020
Browse files
[LTO_RAO] Adds REOWP SCSI command
parent
78c3df43
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/SCSI/Structures.hpp
View file @
53431adf
...
...
@@ -1111,6 +1111,54 @@ namespace SCSI {
* of SPC-4 for sense key = NO SENSE. */
};
/**
* READ END OF WRAP POSITION CDB as described in LTO-8 SCSI Reference, p.119
*/
class
readEndOfWrapPositionCDB_t
{
public:
readEndOfWrapPositionCDB_t
()
{
zeroStruct
(
this
);
opCode
=
SCSI
::
Commands
::
REOWP
;
SERVICE_ACTION
=
0x1F
;
serviceActionQualifier
=
0x45
;
}
// byte 0
unsigned
char
opCode
;
// OPERATION CODE (A3h)
// byte 1
unsigned
char
SERVICE_ACTION
:
5
;
// 1Fh
unsigned
char
:
3
;
// byte 2
unsigned
char
serviceActionQualifier
;
// 45h
// byte 3
unsigned
char
WNV
:
1
;
// Wrap Number Valid: 0 = request data for first wrap on the tape
// 1 = return data for wrap in wrapNumber field
unsigned
char
RA
:
1
;
// Report All: 0 = short form reply (return data for a single wrap)
// 1 = long form reply (return data for all wraps)
unsigned
char
:
6
;
// byte 4
unsigned
char
reserved1
;
// Reserved
// byte 5
unsigned
char
wrapNumber
;
// Wrap for which the end of wrap position is requested.
// If set, WNV must be 1 and RA must be 0.
// bytes 6-9
unsigned
char
allocationLength
;
// Maximum number of bytes to be transferred
// In the case of Report All, each wrap descriptor is 11
// bytes. LTO-9 tapes have 280 wraps, so reply can be up
// to 3084 bytes. And longer in case of LTO-10 (details
// not available at time of writing).
// byte 10
unsigned
char
reserved2
;
// Reserved
// byte 11
unsigned
char
control
;
// Control byte
};
/**
* REQUEST SENSE CDB as described in LTO-8 SCSI Reference, p.157
*/
...
...
@@ -1274,7 +1322,7 @@ namespace SCSI {
// bytes 86-95
char
cartridgeSerialNumber
[
10
];
// This is the value from the CRM right-justified, not the Barcode
};
namespace
encryption
{
class
spinCDB_t
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment