546 Commits

Author SHA1 Message Date
Uwe Seimet
35302addd5 Updated parameter handling 2021-09-05 18:58:23 +02:00
Uwe Seimet
e628bf9632 Updated logging 2021-09-05 17:29:16 +02:00
Uwe Seimet
594976e92d Fixed typo 2021-09-05 17:05:45 +02:00
Uwe Seimet
8266d7f876 Comment update 2021-09-05 17:05:33 +02:00
Uwe Seimet
db6a5a0970 Updated handling of removed status for devices without image file support 2021-09-05 16:58:02 +02:00
Uwe Seimet
695a9967b8 Updated error handling 2021-09-04 20:35:44 +02:00
Uwe Seimet
c4e054d4cc Updated logging 2021-09-04 20:24:34 +02:00
Uwe Seimet
431fda143e Comment update 2021-09-04 15:37:22 +02:00
Uwe Seimet
f14c850e59 Code cleanup 2021-09-04 15:30:36 +02:00
Uwe Seimet
822947d524 Updated error handling 2021-09-04 12:34:40 +02:00
Uwe Seimet
4a35f14e42 Removed unused code 2021-09-04 12:27:33 +02:00
Uwe Seimet
186379039d Improved error handling 2021-09-04 12:24:10 +02:00
Uwe Seimet
14669c9ec7 Simplified sending of commands 2021-09-04 11:58:57 +02:00
Uwe Seimet
92e995314d Fixed typo 2021-09-04 11:33:18 +02:00
Uwe Seimet
ec8256df53 A result can always return a message string 2021-09-04 11:31:12 +02:00
Uwe Seimet
6b8f1feee9 Unified result handling with oneof, all commands now return PbResult 2021-09-04 11:26:29 +02:00
Uwe Seimet
e2a45ed84e Updated server info handling 2021-09-04 10:51:22 +02:00
Uwe Seimet
2e7eb6c4d3 DEVICE_INFO supports device list 2021-09-04 10:25:55 +02:00
Uwe Seimet
3868143adb Improved error handling 2021-09-04 09:47:30 +02:00
Uwe Seimet
887508bb56 Added DEVICE_INFO to protobuf interface 2021-09-04 00:31:16 +02:00
Uwe Seimet
f433999b7d Updated rasctl help message 2021-09-03 21:01:22 +02:00
Uwe Seimet
c2a40c668e Initialize private fields 2021-09-03 19:47:35 +02:00
Uwe Seimet
83ab2c612b Updated error message 2021-09-03 19:36:50 +02:00
Uwe Seimet
eda0e0dc2b Updated errro message 2021-09-03 19:35:43 +02:00
Uwe Seimet
c56b393d33 Log information on whether a new device is protected or read-only 2021-09-03 19:14:32 +02:00
Uwe Seimet
0c4081bd1c Fixed memory leak 2021-09-03 18:09:01 +02:00
Uwe Seimet
b72ab1b387 Comment update 2021-09-03 18:04:45 +02:00
Uwe Seimet
ed4e896cbf Simplified ProcessCmd 2021-09-03 17:58:53 +02:00
Uwe Seimet
c0e6023110 Extracted INSERT 2021-09-03 17:49:18 +02:00
Uwe Seimet
7890622e4d Extraced ATTACH and DETACH 2021-09-03 17:36:32 +02:00
Uwe Seimet
9935f4b636 Fixed function declaration 2021-09-03 17:27:11 +02:00
Uwe Seimet
ec42fd9215 Added more device shortcuts to rasctl 2021-09-03 12:53:27 +02:00
Uwe Seimet
e18934d545 Fixed filepath handling 2021-09-03 12:28:39 +02:00
Uwe Seimet
51e807f365 Fixed error handling 2021-09-03 12:21:50 +02:00
Uwe Seimet
169566a0ff Check for attached device for INSERT, EJECT, PROTECT, UNPROTECT 2021-09-02 22:23:25 +02:00
Uwe Seimet
0cbe287665 Remove file from the list of files in use when ejected with a SCSI command 2021-09-02 21:10:55 +02:00
Uwe Seimet
56ee6838b6 Fixed typo 2021-09-02 19:34:23 +02:00
Uwe Seimet
e61ff2dd31 Accept daynaport as legacy type 2021-09-02 18:59:49 +02:00
Uwe Seimet
c0dd442a13 Updated interface comment 2021-09-02 18:56:28 +02:00
Daniel Markstedt
ef6cde56b9
Fix issue where reserved ids were not reserved again when restarting rascsi-service from within the web ui (#226)
* Translate code commends into English, removing redundant ones

* - Translated all remaining Japanese code comments in src/raspberrypi/ to English, with the exception of cfilesystem.cpp|h
- Removed some redundant comments where the context is obvious from the
  code
  - Fixed a few typos and mistakes

* - Store only file path and name to configuration csv
- Strip known non-file path strings when reading configuration csv (backwards compatibility)
- Validate SCSI ID before attempting to attach a device

* Add comment and TODO

* Partial translation of cfilesystem.h

* Move csv read/write logic into file_cmd.py

* Load default.csv on rascsi-web startup

* Add rudimentary error handling to config loading/saving

* Implement a delete configuration csv file feature. Also rename the delete_image method to delete_file and made it take the full file patch as argument to be consistent with other file operation methods.

* Catch the exception when attempting to exclude SCSI id that is already in use from a list of valid SCSI ids

* Fix error handling when failing to open a csv file for read or write

* Run detach_all() only after succeeding to open a file for reading

* Make use of the new 'rasctl -r' command to reserve IDs on the backend side as well.

* Make sure reserved SCSI IDs gets reserved again when restarting rascsi-service from within the web ui
2021-09-02 18:51:18 +02:00
Uwe Seimet
b9dabe7f7b Set/Display patch version 2021-09-02 14:39:59 +02:00
Uwe Seimet
b8d817799a Re-added folder to gitignore 2021-09-01 18:24:10 +02:00
Uwe Seimet
7b84972b4d Fixed detach, which did not remove the filename from the filenames set 2021-09-01 18:20:41 +02:00
Uwe Seimet
4084ef07a1 Removed unused variable 2021-09-01 12:32:04 +02:00
Uwe Seimet
60eeef525a Move string to integer conversion to rasutil 2021-09-01 10:42:06 +02:00
Uwe Seimet
da764200af Improved string to integer conversion 2021-09-01 10:36:34 +02:00
Uwe Seimet
ee98e68d1e Updated string to integer conversions 2021-09-01 10:27:30 +02:00
Daniel Markstedt
bee8fa0d34
Make use of the newly introduced 'rasctl -r' to have the webui reserve ids on the backend side upon startup (#224)
* Translate code commends into English, removing redundant ones

* - Translated all remaining Japanese code comments in src/raspberrypi/ to English, with the exception of cfilesystem.cpp|h
- Removed some redundant comments where the context is obvious from the
  code
  - Fixed a few typos and mistakes

* - Store only file path and name to configuration csv
- Strip known non-file path strings when reading configuration csv (backwards compatibility)
- Validate SCSI ID before attempting to attach a device

* Add comment and TODO

* Partial translation of cfilesystem.h

* Move csv read/write logic into file_cmd.py

* Load default.csv on rascsi-web startup

* Add rudimentary error handling to config loading/saving

* Implement a delete configuration csv file feature. Also rename the delete_image method to delete_file and made it take the full file patch as argument to be consistent with other file operation methods.

* Catch the exception when attempting to exclude SCSI id that is already in use from a list of valid SCSI ids

* Fix error handling when failing to open a csv file for read or write

* Run detach_all() only after succeeding to open a file for reading

* Make use of the new 'rasctl -r' command to reserve IDs on the backend side as well.
2021-09-01 10:09:02 +02:00
Uwe Seimet
dea9642c92 Logging update 2021-08-31 22:16:52 +02:00
Uwe Seimet
b7ba01f97f Re-ordered logging 2021-08-31 21:34:02 +02:00