-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Say hello to Streamer (tape) device support #1477
base: develop
Are you sure you want to change the base?
Conversation
d3e58aa
to
add4679
Compare
Thank you for the pull request!! Could you please take a look at the sonarcloud issues that were reported? |
Good stuff! The python linter reports a minor issue. You can fix it automatically by running |
Also, you have 20 failed python tests, typically indicative of tests needing to be adjusted for the new feature. |
Regarding that, there is another issue besides the tests. The web support for streamer is far from ideal ...:
Sadly my python and HTML skills are closed to zero, I can do small changes by instinct but no more than that. |
I fixed two warnings, and I left one as I'm not going to screw the code readability for this https://sonarcloud.io/project/issues?issues=AZF7JkDXShDQxsHwFJxz&open=AZF7JkDXShDQxsHwFJxz&pullRequest=1477&id=akuker-PISCSI :) Right now I really don't have time to add unit test for all the new code, so the code coverage will remain as it is. |
The extension mapping is handled in https://github.com/PiSCSI/piscsi/blob/develop/cpp/devices/device_factory.h The Python client is just a dumb front end in this aspect.
I see that you added the one Tandberg device profile with 250MB image size to device_properties.json. This is the one mechanism we have for providing common image sizes presently. Do you have another mechanism in mind?
You need to add a new piscsi/python/web/src/templates/index.html Line 101 in 657d22a
|
Implements the mandatory and a few optional commands for tandberd see https://bitsavers.org/pdf/tandbergData/TDC4100/6047-1_TDC-4100_SCSI-2_Interface_Functional_Specification_Aug1991.pdf for more info. Fixed PiSCSI#480
Done.
Nope, it's actually fine as it's very easy for users to add new images without recompiling the cpp bits.
I added an entry also here piscsi/python/web/src/templates/index.html Line 483 in 657d22a
Sadly I did all the web changes blindly as I could not test it because Also for the next two week I'll not have a computer near by, so either you'll wait for me to comeback, or please feel free to fix the patch for me. |
Quality Gate failedFailed conditions |
Did you follow the docker instructions in https://github.com/PiSCSI/piscsi/tree/develop/docker ? What issues did you run into? If there is something that’s broken then I’d like to try fixing it! |
Yup, I think I did that. I can see the main page but I can not login with user: pi pass: |
I think the most sure way to get it to work is to define the BACKEND_PASSWORD environment variable with the password of your choice. |
It didn't work... I'll check it again once I'm back. |
Implements the mandatory and most of the optional commands for tandberd see
https://bitsavers.org/pdf/tandbergData/TDC4100/6047-1_TDC-4100_SCSI-2_Interface_Functional_Specification_Aug1991.pdf for more info.
Fixed #480
I tested this code on my Altos 386 Series 1000. Read, Write, Rewind, ModeSense/Select, etc. operations worked fine.
Also, I didn't used the caching mecanism from Disk as the streamers are sequential and there is no chance to read/write the same block more than once in a very short period of time.
Personally I wanted to use the posix file api, but I thought it might be way too low level ;-)