smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Member Functions | Private Attributes
sat::sat_device Class Reference

SAT support. More...

Collaboration diagram for sat::sat_device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 sat_device (smart_interface *intf, scsi_device *scsidev, const char *req_type, int passthrulen=0, bool enable_auto=false)
virtual ~sat_device () throw ()
virtual smart_deviceautodetect_open ()
 Open device with autodetection support.
virtual bool ata_pass_through (const ata_cmd_in &in, ata_cmd_out &out)
 ATA pass through.
virtual bool scsi_pass_through (scsi_cmnd_io *iop)
 SCSI pass through.

Private Attributes

int m_passthrulen
bool m_enable_auto

Detailed Description

SAT support.

Implements ATA by tunnelling through SCSI.

Definition at line 107 of file scsiata.cpp.


Constructor & Destructor Documentation

sat::sat_device::sat_device ( smart_interface intf,
scsi_device scsidev,
const char *  req_type,
int  passthrulen = 0,
bool  enable_auto = false 
)

Definition at line 132 of file scsiata.cpp.

sat::sat_device::~sat_device ( ) throw () [virtual]

Definition at line 151 of file scsiata.cpp.


Member Function Documentation

bool sat::sat_device::ata_pass_through ( const ata_cmd_in in,
ata_cmd_out out 
) [virtual]

ATA pass through.

Return false on error. Must be implemented in derived class.

Implements ata_device.

Definition at line 229 of file scsiata.cpp.

smart_device * sat::sat_device::autodetect_open ( ) [virtual]

Open device with autodetection support.

May return another device for further access. In this case, the original pointer is no longer valid. Default implementation calls 'open()' and returns 'this'.

Reimplemented from smart_device.

Definition at line 446 of file scsiata.cpp.

bool sat::sat_device::scsi_pass_through ( scsi_cmnd_io iop) [virtual]

SCSI pass through.

Returns false on error.

Implements scsi_device.

Definition at line 436 of file scsiata.cpp.


Member Data Documentation

Definition at line 128 of file scsiata.cpp.

Definition at line 127 of file scsiata.cpp.


The documentation for this class was generated from the following file: