Uwe Seimet
0a5298b8ac
Feature extended server information ( #169 )
...
* PbDevice returns information on whether a device is removable
* Fixed log message
* Added additional status data (ejectable, protctable, removable)
* Assume ejectable == removable
* Removed obsolete fields
* Added locked/lockable to interface
* Code review
* Logging update
* The user should be allowed to also write protect hard disk drives
* Updated error handling
* Testing
* INSERT also has to search in the default file folder
* Added TODO
* Manpage update
* Message updates
* Moved some sanity checks to the server, so that they are run for any client
* Updated error handling
* Moved CR/LF handling to the client, the server should not format too much
* rascsi should not mention "rasctl" in its messages, there may be other clients
* Improved error messages
* Improved error handling by returning an error string
* Added TODO
* Moved check for duplicate ID to ProcessCmd()
* Removed debug output
* Moved include
* Removed obsolete includes, updated includes
* Reverted ready check
* Fixed error messages
* Added convenience method
* Simplified error handling
* Socket/error handling review
* "NO MEDIA" is added by the client, not by the server
* Added missing include
* Only check for duplicate ID when attaching a device
* Added type/string converters for PbDeviceType
* PbDevice indicates whether image files are supported
* Write-protecing a read-only devices is not treated as an error anymore
* Updated read-only check
* Made difference between read-only and protected more explicit
* Added comment
* Comment update
* Made hard disk drives write-protectable by the user
* Resolved https://github.com/akuker/RASCSI/issues/166
* Addressing compiler error - type needs to be initialized
Co-authored-by: akuker <akuker@gmail.com>
2021-08-08 10:08:58 -05:00
Uwe Seimet
8cf24e7163
Feature serialization improvements ( #159 )
...
* Re-added lost code
* Avoid some potential serialization issues
2021-08-03 20:41:18 -05:00
Uwe Seimet
863feed611
Feature device list ( #146 )
...
* Removed all BAREMETAL ifdefs
* Cleaned up subfolders
* Fixed regression
* Re-added underscores
* Fixed merge conflicts
* Assume RASCSI is always defined
* Fixed mege issue
* Re-added result message
* Added Devices message to protobuf interface
* Fixed typo
* Fixed include file names
* Updated files to be ignored by git
* Merge with develop branch
* Synchronized output with develop branch
* Fixed missing dependency, causing issues when running "make -j1"
* Fixed handling of connection errors
* Improved protobuf interface upwards compatibility
* Use -g instead of -s, this has less conflict potential with future options
* Made log level options consistent (rascsi and rasctl used a different option)
* Serialization improvements (#142 )
* Simplified serialization, extracted sending commands
* Simplified serialization
* Fixed warning
* Signature update
* Use Pb prefix for protobuf interface messages
* Moved ListDevices to rasutil
* Log device list
* Split initialization
* Moved code
2021-07-23 19:13:05 -05:00
uweseimet
0032ce5010
Allow rasctl to connect from a different host ( #134 )
...
* Set hostname
* Added option for hostname
* Support connecting from a different host
* Squashed commit of the following:
commit 6698b8b90a
Author: akuker <34318535+akuker@users.noreply.github.com>
Date: Mon Jul 19 01:19:41 2021 -0500
Remove extraneous carriage return (#135 )
Co-authored-by: Tony Kuker <akuker@gmail.com>
commit af6e311e6e
Author: uweseimet <48174652+uweseimet@users.noreply.github.com>
Date: Mon Jul 19 00:15:13 2021 +0200
protobuf-based rasctl/rascsi command interface (#129 )
* Initial protobuf definition
* protobuf result message draft
* Merge with develop branch
* Makefile generates protobuf-based source files
* Interface update
* Fixed typo
* Fixed typo
* Updated returning status
* Serialize return data
* Use correct descriptor
* Made interface fields required
* Deserialize result
* Serialization update
* Updated serialization
* Serialization update
* Updated deserialization
* status handling update
* Evaluate status
* Revert "Evaluate status"
This reverts commit 3d8f2c3252
.
* Completed sense_key enum
* Renaming
* Added protobuf Command
* Updated command evaluation
* Interface update
* Interface update
* Added DeviceType enum
* Improved type-safety
* Fixed typo
* Type-safety update
* Fixed typo
* Error handling update
* Updated list handling
* Error handling update
* Use more C++ strings
* protobuf enums can provide their names
* Fixed listing devices
* Updated logging
* Enum usage cleanup
* More enum cleanup
* Fixed command check
* Updated type check
* Updated enums
* Removed unused variable
* Removed goto, added exception
* Socket handling cleanup
* Code locality cleanup
* Added helper method
* Extracted code
* Updated socket/file handling
* Use C++ I/O
* Use tolower()
* Renaming
* Simplified has_suffix
* Fixed typo
* Use spdlog namespace
* Simplified formatting (endl) of error messages
* Added -s option for changing the runtime log level to rasctl
* Renaming
* Renaming
* Updated error reporting
* Fixed log string formatting
* String conversion cleanup
* Fixed typo
* Log mmap error (happens on 64 bit)
* Improved proto3 compatibility, updated error handling
* CHanges based on review
* Fixed comment
* Comment update
* Updated ListDevice to not directly write to the stream
* Use size_t
* Renaming
* Buffering update
* MapController should not use fp
* Use fd, not fp
* rasctl has to display *all* results
* rasctl has to display *all* results
* Error handling update
* Updated to proto3 protocol
* Optimization by using protobuf-lite
* RaspBian outdated protoc does not support _Name
* Added protobuf-compiler to easyinstall.sh
Co-authored-by: akuker <34318535+akuker@users.noreply.github.com>
* Resolved merge conflicts
* Updated help message
* Re-added CR/LF
* Updated error handling
* Use fd instead of fp
* Removed CR/LF
* Comment update
* Fixed data types
* Data type update
* Updated help message
* Added new option to usage info, rascsi: use -s instead of -l for consistency
* Display name of (remote) host in error message
* Fixed buffer overflow, cfilesystem.cpp:1185 assumes size of 11 bytes
* Revert "Fixed buffer overflow, cfilesystem.cpp:1185 assumes size of 11 bytes"
This reverts commit 126592d411
.
2021-07-19 18:41:00 -05:00
uweseimet
af6e311e6e
protobuf-based rasctl/rascsi command interface ( #129 )
...
* Initial protobuf definition
* protobuf result message draft
* Merge with develop branch
* Makefile generates protobuf-based source files
* Interface update
* Fixed typo
* Fixed typo
* Updated returning status
* Serialize return data
* Use correct descriptor
* Made interface fields required
* Deserialize result
* Serialization update
* Updated serialization
* Serialization update
* Updated deserialization
* status handling update
* Evaluate status
* Revert "Evaluate status"
This reverts commit 3d8f2c3252
.
* Completed sense_key enum
* Renaming
* Added protobuf Command
* Updated command evaluation
* Interface update
* Interface update
* Added DeviceType enum
* Improved type-safety
* Fixed typo
* Type-safety update
* Fixed typo
* Error handling update
* Updated list handling
* Error handling update
* Use more C++ strings
* protobuf enums can provide their names
* Fixed listing devices
* Updated logging
* Enum usage cleanup
* More enum cleanup
* Fixed command check
* Updated type check
* Updated enums
* Removed unused variable
* Removed goto, added exception
* Socket handling cleanup
* Code locality cleanup
* Added helper method
* Extracted code
* Updated socket/file handling
* Use C++ I/O
* Use tolower()
* Renaming
* Simplified has_suffix
* Fixed typo
* Use spdlog namespace
* Simplified formatting (endl) of error messages
* Added -s option for changing the runtime log level to rasctl
* Renaming
* Renaming
* Updated error reporting
* Fixed log string formatting
* String conversion cleanup
* Fixed typo
* Log mmap error (happens on 64 bit)
* Improved proto3 compatibility, updated error handling
* CHanges based on review
* Fixed comment
* Comment update
* Updated ListDevice to not directly write to the stream
* Use size_t
* Renaming
* Buffering update
* MapController should not use fp
* Use fd, not fp
* rasctl has to display *all* results
* rasctl has to display *all* results
* Error handling update
* Updated to proto3 protocol
* Optimization by using protobuf-lite
* RaspBian outdated protoc does not support _Name
* Added protobuf-compiler to easyinstall.sh
Co-authored-by: akuker <34318535+akuker@users.noreply.github.com>
2021-07-18 17:15:13 -05:00