Commit 818b1080 authored by Michael Davis's avatar Michael Davis Committed by Cedric Caffy
Browse files

[LTO_RAO] Adds ioctlRequestSense header

parent efee063b
......@@ -145,6 +145,8 @@ int System::stDeviceFile::ioctl(unsigned long int request, sg_io_hdr_t * sgio_h)
switch (sgio_h->cmdp[0]) { // Operation Code for CDB
case SCSI::Commands::READ_POSITION:
return ioctlReadPosition(sgio_h);
case SCSI::Commands::REQUEST_SENSE:
return ioctlRequestSense(sgio_h);
case SCSI::Commands::LOG_SELECT:
return ioctlLogSelect(sgio_h);
case SCSI::Commands::LOCATE_10:
......
......@@ -83,7 +83,7 @@ namespace System {
unsigned char m_LBPInfo_R;
unsigned char m_LBPInfo_W;
/**
* This function handles READ_POSITION CDB and prepares the replay.
* This function handles READ_POSITION CDB and prepares the reply.
*
* @param sgio_h The pointer to the sg_io_hdr_t structure with
* ioctl call data
......@@ -91,7 +91,17 @@ namespace System {
* -1 with appropriate errno if an error occurred.
*/
virtual int ioctlReadPosition(sg_io_hdr_t * sgio_h);
/**
* This function handles REQUEST_SENSE CDB and prepares the reply.
*
* @param sgio_h The pointer to the sg_io_hdr_t structure with
* ioctl call data
* @retval 0 success
* @retval -1 if an error occurred (errno is set)
*/
virtual int ioctlRequestSense(sg_io_hdr_t * sgio_h);
/**
* This function handles LOG_SELECT CDB and only checks the CDB for the
* correct values and sets internal trigger for 0 compression as true.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment