The inquiry command only returns up to the revision information, so don't return more data than this. This gives a total of 36 bytes returned, which is the required minimum in the spec.
The DWORDs in `cdb *` are not raw packed data from the wire, they
are manually copied in a previous function. Trying to cast that
unpacked, aligned-on-byte-boundary data into the packed
scsi_cmd_read_6_t structure is not correct and does not put the
correct DWORDs into the proper fields.
Just do away with this struct and refer to the 2 cdb DWORDs (opcode
and length) manually.
All traffic from the DaynaPort will have a control value of 0xc0 or
0x80, so any commands that don't should be ignored.
This helps the Mac Plus which will try to READ(6) from the DaynaPort
device if it's attached at boot and then try to interpret the
ethernet packet as hard drive data and crash.
See issue akuker#419
* Use the effective filename when checking for duplicates
* Fixed check for asynchronous notifications
* Added additional filename check
* Applied fix also for attach
* Added TERMINATE command
* Help text update
* Created ras_util namespace
* Created protobuf_util namespace
* Extracted RascsiImage from rascsi for better modularity
* Fixed wrong filenames (class name differed)
* No need for response handler to be a singleton
* Class renaming
* Renaming
* Moved code
* Moved code
* Image folder handling optimizations
* Updated device factory handling
* DeviceFactory constructor should be private (singleton)
* Renamed TERMINATE to SHUT_DOWN
* Fixed capacity calculation for INQUIRY data
* ATTACH and DETACH return the resulting device list for convenience
* Interface comment update
* Moved code, check fd
* Use new command when returning result for ATTACH/DETACH
* Updated interface comments
* Removed size validation for MOs
* rasctl -D detaches all devices
* Detach all devices on Ctrl-C (KILL signal)
* Added comment
* Also detach all devices on SIGTERM
* Updated logging
* Updated logging
* Updated logging
* Updated ID/LUN parsing
* Updated handling of max_id
* The -HD option sets type to SAHD
* Replaced is_sasi by device type
* Updated logging
* Logging update
* Improved LUN evaluation
* Check LUN against UnitMax
* Comment update
* LUN parsing update
* Logging update
* Logging update
* Updated ReportLuns
* Updated REPORT LUNS
* Cleanup
* Updated REPORT LUNS
* Updated Execute()
* Updated LUN handling
* Check for consecutive LUNs
* Added LUN check for remotely attached devices
* Remember LUN selected by IDENTIFY
* Evaluate LUN from IDENTIFY message
* Added comment
* Updated REPORT LUNS
* Initlize LUN
* Logging update
* Support 32 LUNs
* rasctl display update
* Updated LUN check for LUNSs > 7
* Simplified LUN validation
* Fixed wrong ID/LUN handling with values > 9
* Log level update
* Manpage update
* rascsi parser update
* Updated error handling
* Updated error handling
* Updated LUN setup validation
* Updated logging
* Improved validation of consecutive LUNs
* Renaming
* Detach all LUNs equal to or higher than the one specified
* Add support for LUN in the device list
* Add ability to show device info for LUNs
* Make it possible to detach and eject LUNs
* Show full path to prop file
* Show only LUN columns when non-0 LUNs present
* Support for attaching LUNs
* Add helptext
* Fix handling of removable media
* Retain the previous behavior of recommending the next unoccupied id
* SCSI ID validation no longer needed due to changed logic
* Make use of recommended id everywhere
* Docstring
Co-authored-by: Daniel Markstedt <markstedt@gmail.com>
* Removed ISO CD-ROM block size check
* Removed CD size checks
* Replicate read-only status when copying an image file
* Cleanup
* Copied images can optionally be created read-only
* Check path of default image folder
* Comment update
* Updated error message
* Added MAPPING_INFO command, returning the mapping of extensions to types
* Updated help message
* Set explicit vendor/product/revision for .hda extension
* Added leading blanks to vendor and product for .hda
* Product string update
* Fixed typo in help string
* Manpage update
* Spoof hda as a Quantum Fireball
Co-authored-by: Daniel Markstedt <markstedt@gmail.com>