Commit Graph

491 Commits

Author SHA1 Message Date
Daniel Markstedt
c887edfc8c
Remove special elevated privileges for the Web Interface (#536)
* Use the pi_shutdown method to restart the rascsi service

* Use the pi_shutdown method to restart the rascsi service

* Remove modifications to sudoers no longer needed

* Introduce sleeps attempting to connect to socket; reduce overall number of retries

* Remove systemd helped methods and the functionality that depends on it

* Attempts to speed up splash code

* Remove unneccessary verbosity

* Attempt to optimize service definition
2021-12-19 17:50:03 -06:00
Daniel Markstedt
801aebfb96
More readable message when downloading a file (#531) 2021-12-19 17:47:22 -06:00
Daniel Markstedt
29cf58288f
Add a warning notice when ejecting removable media (#526) 2021-12-19 17:47:03 -06:00
Daniel Markstedt
7efa895239
Unzip zipfiles before storing to iso (#525)
* Unzip zipfiles before storing to iso

* Add helptext

* Skip unzip for MacZip format

* Should not be an fstring
2021-12-19 17:46:22 -06:00
Uwe Seimet
ec31198d83
Optional authentication by access token (#529)
* Added authentication by access token

* No authentication is required for getting the rascsi version

* Added comment

* Interface description update

* Manpage update

* Added error code

* Enum value update (backwards compatible)

* Error code update

* Error code update

* Added CHECK_AUTHENTICATION

* Comment update

* VERSION_INFO also requires authentication

* rasctl: Made token an optional parameter for -P

* Fixed interface comment
2021-12-19 11:54:10 +01:00
Uwe Seimet
e32211ef73
Recursive image file scan and image file filter (#532)
* Extracted code

* Initial support for (optional) recursive image file listings

* Manpage update

* Added support for image file filter

* Updated filtering

* Made image scan depth configurable
2021-12-19 11:49:17 +01:00
Daniel Markstedt
39c65beb99
Better Pi shutdown handling in Web Interface (#522)
* Add shutdown method

* Use shutdown method

* Use proto shutdown commands; remove old shell commands

* Add explicit monitor_rascsi shutdown

* Better method name

* Add code comment

* Fix bug
2021-12-13 19:37:28 -08:00
Daniel Markstedt
0eb9e50d18
Rename image file in web interface (#521)
* Introduce rename_image method

* Introduce rename endpoint

* Better prompt text

* Fix bug

* Make renaming properties files work

* Have current file name prefilled

* Add login_required decorator

* Remove unused code
2021-12-13 20:50:36 -06:00
Daniel Markstedt
986116f8d9
Introduce wrapper method for enabling auth for endpoints (#518) 2021-12-12 18:54:15 -06:00
Daniel Markstedt
01bc198d4c
Pipe only stdout to /dev/null when checking pip return code (#517)
* Piping stderr to /dev/null was a bad idea

* Piping stderr to /dev/null was a bad idea
2021-12-12 18:53:08 -06:00
Daniel Markstedt
7dce1bc3b9
The ability to create ISO images of various types (#520)
* Better error handling

* Ability to create ISO images of various types

* Remove ISO v2 option, since I couldn't test that it works

* Add help text

* Fix typo
2021-12-12 18:52:35 -06:00
Daniel Markstedt
aa0e5a287b
Error handling in subprocess run (#516) 2021-12-12 11:13:19 -06:00
Uwe Seimet
0abbff200e
Support for RaSCSI shutdown, system shutdown or reboot (#515)
* Initial reboot support

* Moved code

* Fixed typo

* Shutdown update

* rasctl passes mode "rascsi"

* Use reboot() instead of syscall()

* Fixed typo

* Renaming

* Comment update

* Error message update

* Updated error handling

* Error message update

* Added comment
2021-12-10 16:03:01 -06:00
Daniel Markstedt
916cf2c72c
Fix startup check for broken venv (logic was the wrong way around) (#513)
* I got the logic the wrong way around

* Explicitly use pip3 to avoid certain error scenarios
2021-12-09 19:45:54 -06:00
Daniel Markstedt
0cc0ee9094
Add checks for bad venv, and delete if detected (#510)
* Add checks for two known bad venv states

* More sturdy replacement operator
2021-12-06 20:38:41 -06:00
Uwe Seimet
5ec5a5f730
Link rasctl with -lpthread, updated cross-compiler default setting (#508)
* Link rasctl with -lpthread, as -lprotobuf may require it

* Made non-cross compiling the default setting

* Comment update

* No need for initial definition of CROSS_COMPILE

* Update
2021-12-06 11:45:44 -08:00
Uwe Seimet
b9f2d3d448
Logging update (#505) 2021-12-03 10:25:36 -08:00
Daniel Markstedt
df3387b178
Stop submit event if prompt cancel is clicked (#495) 2021-12-02 19:20:00 -06:00
Tony Kuker
5775cd1fb2 Update version for next development version 2021-11-28 18:27:56 -06:00
Daniel Markstedt
c3a4bf876f
Handle error for invalid zip file (#494) 2021-11-28 14:09:31 -06:00
Daniel Markstedt
b682655e56
Scroll to top of page when long process is initiated (#493)
* Scroll to top of page when long process is initiated. Reduce code duplication.

* Add script type
2021-11-27 20:23:37 -06:00
Daniel Markstedt
8dfe9d1b5e
Use a byte size the Floptical driver recognizes. Remove the 21MB profile as it doesn't work. (#492) 2021-11-27 20:22:50 -06:00
Daniel Markstedt
a2af7623af
Make the restart rascsi service endpoint actually check for systemd s… (#487)
* Make the restart rascsi service endpoint actually check for systemd service status before doing anything. Introduced error handling and more verbose messages.

* Cleanup
2021-11-27 19:17:36 -06:00
Daniel Markstedt
7818552ca9
Resolve pylint warnings (#488)
* Suppress the import outside toplevel pylint rule -- I think we want to save memory

* Resolve pylint warnings
2021-11-27 14:11:59 -06:00
Daniel Markstedt
fff0a748b3
Change wiki link (#491) 2021-11-27 14:10:45 -06:00
Daniel Markstedt
5b397229cd
Introduce async operations in webapp (#485)
* Introduce run_async for system processes

* Remove redundant code for system shutdown and reboot endpoints

* Use async process with systemd_service

* Modify innerHTML to show progress messages

* Add docstring
2021-11-26 20:59:25 -08:00
Daniel Markstedt
5346d110a9
User authentication in the Web Interface (#483)
* Add flask-login library

* Add simplepam lib to requirements

* We don't use flask-login after all

* User authentication in the web app using simplepam

* Allow only users in the sudo group to log in

* Tweak string

* This way to enforce authenticated state doesn't work here

* Open links to github in new tab

* Disallow uploads when not authenticated

* Check for the rascsi group on the system to enable webapp auth. Allow only users in the rascsi group to authenticate.

* Make the AUTH_GROUP a global constant.

* Add easyinstall option for web interface auth

* Make AUTH_GROUP a constant

* More accurate change scope
2021-11-26 22:41:10 -06:00
Uwe Seimet
1ad1242fad
Feature READ/WRITE LONG(10/16) (#481)
* Partial implementation of READ/WRITE LONG(10)

* Comment update

* Comment update

* Fixed typo

* Updated dispatcher table

* Added READ/LONG(16)

* Added 16 byte opcode

* Updated flushing

* Logging update

* Fixed typo

* Check start sector

* Renaming
2021-11-26 22:29:21 -06:00
Daniel Markstedt
4287145615
Create the manpage dir if it doesn't exist (#482) 2021-11-24 21:27:17 -06:00
Uwe Seimet
d0b3c54700
Updated manpath path to /usr/local/man/man1 (#474) 2021-11-18 19:41:33 -06:00
Daniel Markstedt
53d38077f1
Include file name in delete modal (#476) 2021-11-18 19:24:59 -06:00
Uwe Seimet
f46453bbd2
Various DaynaPort related logging updates (#477)
* Removed duplicate CDB logging

* Updated logging

* Logging update

* Log level update

* Removed more duplicate logging

* Logging update

* Logging update

* Comment update

* Logging update

* Removed assertion

* Removed dummy method (doing nothing)

* Logging update
2021-11-18 19:24:36 -06:00
Daniel Markstedt
111920edb0
Make rascsi-web port configurable (#471) 2021-11-15 20:00:32 +01:00
Daniel Markstedt
0f222df9a2
Make the OLED script work on Bullseye (#470)
* Add check for gcc 10+ and inject compiler flaggs

* Bump Python libraries
2021-11-14 19:48:46 -06:00
Daniel Markstedt
014ced6042
Http error strings makes it clear that they are thrown by the RaSCSI Web Interface (#468) 2021-11-14 14:07:08 -06:00
Daniel Markstedt
e1a4a963ed
Updates for running on Bullseye (#469)
* Conditionally use compiler flags needed for gcc 10+

* Cleanup

* Remove deprecated systemd options

* Better message
2021-11-14 19:34:24 +01:00
Pacjunk
a3645dfecc
Update disk.cpp - modesense10 command length (#464)
Modesense(10) has 2 length bytes, therefore the size adjustment must be 2, not 1!
2021-11-14 10:41:34 +01:00
Pacjunk
641e7df64c
Update scsihd.cpp Inquiry data length (#463)
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.
2021-11-14 10:41:10 +01:00
Daniel Markstedt
133eab068c
Use the 21.11 release tarball for Macproxy; allow you to specify port number (#450)
* Tweak UI strings

* Pull a stable macproxy release tarball

* Add option to customize port
2021-11-13 19:45:40 -06:00
Daniel Markstedt
1446664310
Add Iomega Floptical profiles (#453) 2021-11-13 19:44:53 -06:00
Daniel Markstedt
70d58118fd
Transliterate non-ASCII for display on the screen (#449) 2021-11-13 19:44:09 -06:00
Daniel Markstedt
61c4534eab
Add support for 64px OLED screen height (#448)
* Add support for 64px screen height

* Handle case when only one argument is passed

* Simplify arg parsing

* Update install script to handle screen height selection

* Cleanup

* Update README

* Add blurb on running start.sh standalone

* Format

* Global constant for LINE_SPACING

* Make FONT_SIZE a global constant; improve code comments
2021-11-13 19:40:49 -06:00
Daniel Markstedt
65d0a9b2e6
Improved properties unzip handling (#447)
* Attempt to unzip a properties file when unzipping individual files

* Don't show the unzip button for properties files

* Hide properties files in zip files, and show an asterisk for images with associated properties

* Cleanup

* Have properties files expand below images in archives

* Hide bullets

* Improve layout
2021-11-13 19:38:01 -06:00
Uwe Seimet
41c3405b99
Code cleanup (#442)
* Fixed clang warnings

* Removed obsolete logging

* Collection usage cleanup

* Use sorted collections

* Updated sorting, added comments

* Improved locality of code

* Simplified vector initialization

* Fixed typo

* Collection usage cleanup

* Removed useless comments and assertions

* Removed useless comments, removed code inconsistencies

* Removed useless comments, renaming

* Replaced cast by a more explicit logical operation

* Removed target with hard-coded paths

* Include file cleanup

* Use more standard includes

* Fixed log level name

* Updated switch

* Fixed typo

* Improvoded locality of code, removed useless comments
2021-11-13 19:36:35 -06:00
Uwe Seimet
5abd403c78
IMAGE_FILE_INFO used hostname instead of filename (#457) 2021-11-12 20:28:40 -08:00
Pacjunk
62cd8df11b
Add profiles for DEC SCSI floppy drives (#441)
* Add files via upload

* Fix wording for RRD42.
2021-11-09 17:48:25 -08:00
Daniel Markstedt
c8b6ac409b
Indicator of a running macproxy daemon in the webapp (#436)
* Support for downloading properties files

* Show extra message when unzipping properties file

* Add logic to unzip method

* Move unzipped properties into CFG_DIR

* Better status message

* Cleanup

* Generic process introspection method

* Show macproxy status in the webapp
2021-11-08 19:11:27 -08:00
Daniel Markstedt
08e7531bb6
Special handling of properties files (#432)
* Support for downloading properties files

* Show extra message when unzipping properties file

* Add logic to unzip method

* Move unzipped properties into CFG_DIR

* Better status message

* Cleanup

* Fix bugs
2021-11-08 19:10:52 -08:00
Daniel Markstedt
088e7951f1
Inline attaching of removable media in the device list (#421)
* Clean up constant name

* Inline removable media insertion

* Add missing code

* Revert mistaken change
2021-11-08 20:55:04 -06:00
Daniel Markstedt
59e9d8584c
Check for network bridge configuration before attaching daynaport (#428) 2021-11-08 20:34:49 -06:00
Daniel Markstedt
988a2ffe1a
Make rascsi, rascsi-web and easyinstall.sh portable (#426)
* Make install script portable

* Modify rascsi-web service to accommodate portability

* Remove initialChecks call

* Introduce USER global variable

* Make the web app portable

* Make netatalk installation script portable

* Cleanup

* Cleanup

* Configure default image dir in rascsi.service
2021-11-08 20:33:33 -06:00
joshua stein
b54977daa6
DaynaPort: Remove scsi_cmd_read_6_t struct, it was not correct (#435)
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.
2021-11-08 22:56:18 +01:00
joshua stein
f2b5d86fa0
DaynaPort: Ignore commands with a bogus control value (#433)
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
2021-11-08 22:42:54 +01:00
Uwe Seimet
f7ec0de834
Fix clang warnings (#423)
* Fixed clang compiler warnings

* Removed unused code

* Reset compiler
2021-11-07 21:30:21 +01:00
Uwe Seimet
817c1cde31
Fix issue 422 (#425)
* Use the effective filename when checking for duplicates

* Fixed check for asynchronous notifications

* Added additional filename check

* Applied fix also for attach
2021-11-07 21:18:58 +01:00
Daniel Markstedt
7e546e2cb8
ID reservation in Web UI (#416)
* Remove dead code

* Clean up indentation

* Cleanup

* Move socket commands into its own file

* Move non-rascsi command methods into its own file

* Refactoring

* Bring back list_config_files

* Cleanup

* Cleanup of status messages

* Remove unused libraries

* Resolve pylint warnings

* Resolve pylint warnings

* Remove unused library

* Resolve pylint warnings

* Clean up status messages

* Add requests lib to requirements.txt

* Clean up status messages

* Resolve interpolation warnings for logging

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Cleanup

* Add html/head/body tags to the base document

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Add .pylintrc and suppress warnings for the generated protobuf module

* Resolve pylint warnings

* Clean up docstrings

* Fix error

* Cleanup

* Add info on pylint to README

* Store .pylintrc in parent dir to allow other Python packages to use it

* Tidy index.html

* Cleanup

* Resolve jinja-ninja warnings

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Save and load id reservations in config file

* Reserve and unreserve in the web ui

* TODO

* Add backwards compatibility with 21.10 config files

* Comment cleanup

* Save and load reservation memos into the config file

* Cleanup

* Resolve pylint warnings

* Fix bugs

* Fix bug

* Fix bugs

* Cleanup

* Fix typo

* Fix successful return clause

* Cleanup

* Fix bugs
2021-11-06 21:11:17 -05:00
Daniel Markstedt
54b3e480a5
Web UI code cleanup and refactoring (#409)
* Remove dead code

* Clean up indentation

* Cleanup

* Move socket commands into its own file

* Move non-rascsi command methods into its own file

* Refactoring

* Bring back list_config_files

* Cleanup

* Cleanup of status messages

* Remove unused libraries

* Resolve pylint warnings

* Resolve pylint warnings

* Remove unused library

* Resolve pylint warnings

* Clean up status messages

* Add requests lib to requirements.txt

* Clean up status messages

* Resolve interpolation warnings for logging

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Cleanup

* Add html/head/body tags to the base document

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Resolve pylint warnings

* Add .pylintrc and suppress warnings for the generated protobuf module

* Resolve pylint warnings

* Clean up docstrings

* Fix error

* Cleanup

* Add info on pylint to README

* Store .pylintrc in parent dir to allow other Python packages to use it

* Tidy index.html

* Cleanup

* Resolve jinja-ninja warnings

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Cleanup

* Fix wording
2021-11-06 19:25:02 -05:00
Daniel Markstedt
092cb60702
Handle the screen rotation parameter better, fixing an error when no parameter was specified (#418) 2021-11-06 19:23:53 -05:00
Daniel Markstedt
562f1f0d6a
Create a generic README markdown file, remove the font specific one (#415) 2021-11-02 20:24:07 -05:00
Daniel Markstedt
4219e6918c
Refactoring of OLED screen Python script (#413)
* Split up source into modules

* Add symlink to .pylintrc in the racsci-web dir

* Resolve pylint warnings

* Resolve pylint warnings

* Split out methods into separate modules

* Resolve pylint warnings

* Clean up docstrings
2021-11-02 20:20:42 -05:00
Tony Kuker
0f52e72915 Restore version to development version 2021-10-29 21:59:27 -05:00
Tony Kuker
21a8805d5d Updated copyrights and versions 2021-10-29 21:55:24 -05:00
Uwe Seimet
8f7e0fa880
Added missing CR/LF to rasctl error message output (#403) 2021-10-29 11:14:54 -07:00
Daniel Markstedt
a48d6d10fb Tweak formatting 2021-10-28 14:22:20 -07:00
Daniel Markstedt
f59e0af091 Tweak formatting 2021-10-28 14:03:40 -07:00
Daniel Markstedt
278b01c1a4 Show hostname instead of RaSCSI 2021-10-28 13:29:06 -07:00
Daniel Markstedt
52dbfdb44a Remove version to reduce clutter 2021-10-28 11:00:31 -07:00
Daniel Markstedt
5d304e4eaf Show IP above RaSCSI version 2021-10-28 10:39:21 -07:00
Daniel Markstedt
861f4a4327 Show IP address on OLED screen 2021-10-28 10:36:31 -07:00
Daniel Markstedt
58ba087476 More user friendly netatalk connection status messages 2021-10-28 09:52:45 -07:00
Daniel Markstedt
500048ee70 Do chunked downloads to avoid running out of memory 2021-10-28 06:19:58 -07:00
Daniel Markstedt
08c2295832
Shut down splash in the same style as the boot one (#386) 2021-10-27 21:22:29 -05:00
Daniel Markstedt
508bf83292
Fix unzipping individual files in subdirs (#387)
* Fix unzipping individual files in subdirs

* Escape member file name before extracting
2021-10-27 21:21:43 -05:00
Eric Helgeson
61e596aedf
Merge pull request #390 from akuker/rdmark_kill_other_oled
Pkill other oled monitor scripts before starting new one
2021-10-27 13:49:48 -05:00
Eric Helgeson
c638127614
Merge pull request #389 from akuker/fix_typo_and_multiline
Fix typo and the multiline strings.
2021-10-27 13:48:47 -05:00
Daniel Markstedt
19bee3654e Cleanup 2021-10-27 11:13:30 -07:00
Daniel Markstedt
7ec7d45c48 Use the requests library to fetch files 2021-10-27 11:11:37 -07:00
Daniel Markstedt
46698c7b05 Use wget to download files instead of urllib; reducing code duplication and fixing a bug 2021-10-26 21:50:00 -07:00
Daniel Markstedt
9240ce974a Pkill other oled monitor scripts before starting new one 2021-10-26 18:21:39 -07:00
Daniel Markstedt
1b8a0c341d Fix typo and the multiline strings. 2021-10-26 15:51:57 -07:00
Daniel Markstedt
e5f58bb967
Capture files being extracted as well (#381) 2021-10-26 15:05:49 -05:00
Daniel Markstedt
28de92a00c
Enable unzipping of individual archive members (#385)
* Enable unzipping of individual archive members

* Add code comments
2021-10-26 15:05:15 -05:00
Daniel Markstedt
3546764722
Better error handling in ISO image creation (#379) 2021-10-26 15:03:29 -05:00
Uwe Seimet
79c5da9432
Use long long instead of long for image size (#383) 2021-10-26 06:41:17 -07:00
Daniel Markstedt
87640a7c2c
More verbose unzipping; don't overwrite existing files (#378) 2021-10-25 20:58:16 -05:00
Uwe Seimet
cc1783c1cd
Improved remote connection error handling (#376)
* Improved remote connection error handling

* Improved error handling by adding a magic string to each message

* Interface comment update

* Interface comment update

* Improve error messages

* Clients send the magic word to authenticate

Co-authored-by: Daniel Markstedt <markstedt@gmail.com>
2021-10-25 16:04:10 -07:00
Daniel Markstedt
7725556626
Use Type Writer font on the OLED screen (Author: Mandy Smith) (#377)
* Use Type Writer font on the OLED screen

* Add README crediting Mandy Smith + note on permission
2021-10-25 17:41:36 -05:00
Daniel Markstedt
e3794619b4
OLED screen: Clean exit on error; proper handling of removable devices; signal handling; splash screen (#364)
* Clean exit on errors

* Avoid unnecessary scrolling

* Fix bug where removable media wasn't updated

* Add signal handler, solution from https://stackoverflow.com/questions/1112343/how-do-i-capture-sigint-in-python

* Display a splash screen on startup

* Introduce stop splash

* Add parameters to enable the SIGTERM handling to take effect

* Change to a less busy stop splash

* Less busy start splash

* Iterate on splash bitmaps

* Iterate on splash bitmap

* Add check for libopenjp2-7-dev in the start script

* Iterate on splash bitmap

* Iterate on splash bitmap
2021-10-24 21:13:32 -05:00
Daniel Markstedt
960cc91168
Iterate on webapp config UX (#371)
* Iterate on webapp config ux

* Labels were only adding clutter

* Add confirmation modals
2021-10-24 21:09:35 -05:00
Pacjunk
d334669722
Update drive_properties.json (#372)
Add RZ22, RZ23, RZ24, RZ26L, RZ28M, RZ29B & RZ56
2021-10-24 18:33:33 -07:00
Daniel Markstedt
dd6d289395 Fix incorrect path to zip file to unzip; improve error handling 2021-10-24 11:07:26 -07:00
Daniel Markstedt
ea0d4cc4b6 Fix zipfile handling 2021-10-24 10:27:44 -07:00
Daniel Markstedt
df12ceb028 Add missing endif, and clean up indentation 2021-10-24 10:19:07 -07:00
Daniel Markstedt
17fc99d0fc
Merge branch 'develop' into rdmark_inline_prop 2021-10-24 09:57:08 -07:00
Eric Helgeson
e2f6ce8bc2
Merge pull request #365 from akuker/issue_356
Clean up config files after error
2021-10-24 11:53:47 -05:00
Eric Helgeson
1b17b8272c
Merge pull request #368 from akuker/manual_unzip
Bring back manual unzip
2021-10-24 11:53:14 -05:00
Uwe Seimet
dcbee64750
Do not consider NONE operation an error (#369)
* Do not consider NONE operation an error

* Cleanup

* Code cleanup from other PR
2021-10-23 23:10:31 -07:00
Daniel Markstedt
6c60dcf550 Display image properties inline in the image list, and remove the previous UI 2021-10-23 23:00:40 -07:00
Daniel Markstedt
7d21a284cd Use href to go back to index page 2021-10-23 10:39:16 -07:00
Troy
40432c9de0
All Sense/ASC/ASCQ data is cleared properly (#367)
* All Sense/ASC/ASCQ data is cleared properly

* Forgot to guard the status clear for REQUEST SENSE

Co-authored-by: Troy <jokker@gmail.com>
2021-10-22 20:16:37 +02:00