1
1
/* C:B**************************************************************************
2
- This software is Copyright 2014-2016 Bright Plaza Inc. <[email protected] >
2
+ This software is Copyright 2014-2017 Bright Plaza Inc. <[email protected] >
3
3
This software is Copyright 2017 Spectra Logic Corporation
4
4
5
5
This file is part of sedutil.
@@ -856,7 +856,7 @@ uint8_t DtaDevEnterprise::setLockingRange_SUM(uint8_t lockingrange, uint8_t lock
856
856
LOG (D1) << " Exiting DtaDevEnterprise::setLockingRange_SUM()" ;
857
857
return DTAERROR_INVALID_PARAMETER;
858
858
}
859
- uint8_t DtaDevEnterprise::enableUser (char * password, char * userid)
859
+ uint8_t DtaDevEnterprise::enableUser (char * password, char * userid, OPAL_TOKEN status )
860
860
{
861
861
LOG (D1) << " Entering DtaDevEnterprise::enableUser" ;
862
862
LOG (E) << " enableUser not implemented" ;
@@ -1419,9 +1419,9 @@ uint8_t DtaDevEnterprise::exec(DtaCommand * cmd, DtaResponse & resp, uint8_t pro
1419
1419
uint8_t rc = 0 ;
1420
1420
OPALHeader * hdr = (OPALHeader *) cmd->getCmdBuffer ();
1421
1421
LOG (D3) << endl << " Dumping command buffer" ;
1422
- IFLOG (D) DtaAnnotatedDump (IF_SEND, cmd->getCmdBuffer (), IO_BUFFER_LENGTH );
1422
+ IFLOG (D) DtaAnnotatedDump (IF_SEND, cmd->getCmdBuffer (), cmd-> outputBufferSize () );
1423
1423
IFLOG (D3) DtaHexDump (cmd->getCmdBuffer (), SWAP32 (hdr->cp .length ) + sizeof (OPALComPacket));
1424
- rc = sendCmd (IF_SEND, protocol, comID (), cmd->getCmdBuffer (), IO_BUFFER_LENGTH );
1424
+ rc = sendCmd (IF_SEND, protocol, comID (), cmd->getCmdBuffer (), cmd-> outputBufferSize () );
1425
1425
if (0 != rc) {
1426
1426
LOG (E) << " Command failed on send " << (uint16_t ) rc;
1427
1427
return rc;
@@ -1430,8 +1430,8 @@ uint8_t DtaDevEnterprise::exec(DtaCommand * cmd, DtaResponse & resp, uint8_t pro
1430
1430
do {
1431
1431
// LOG(I) << "read loop";
1432
1432
osmsSleep (25 );
1433
- memset (cmd->getRespBuffer (), 0 , IO_BUFFER_LENGTH );
1434
- rc = sendCmd (IF_RECV, protocol, comID (), cmd->getRespBuffer (), IO_BUFFER_LENGTH );
1433
+ memset (cmd->getRespBuffer (), 0 , MIN_BUFFER_LENGTH );
1434
+ rc = sendCmd (IF_RECV, protocol, comID (), cmd->getRespBuffer (), MIN_BUFFER_LENGTH );
1435
1435
1436
1436
}
1437
1437
while ((0 != hdr->cp .outstandingData ) && (0 == hdr->cp .minTransfer ));
0 commit comments