This is a simple class used to simulate the communication with a device by using known buffers. Pass this device to a SCSICommand, and during the sgio_execute() it sets the response buffers with the data instead of executing a real ioctl.
Class to hold the device handle, block size, and total blocks in a single place. This sends a ReadCapacity(10) command to the device to collect the values; to avoid sending the command, override the defaults in the constructor.