2020-12-31 01:39:32 +00:00
{% extends "base.html" %}
2021-11-07 00:25:02 +00:00
{% block content %}
2020-12-31 01:39:32 +00:00
2021-11-07 00:25:02 +00:00
< details >
< summary class = "heading" >
Current RaSCSI Configuration
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Displays the currently attached devices for each available SCSI ID.< / li >
< li > Save and load device configurations into < tt > {{ CFG_DIR }}< / tt > < / li >
< li > The < em > default< / em > configuration will be loaded when the Web UI starts up, if available.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< p > < form action = "/config/load" method = "post" >
< select name = "name" required = "" width = "14" >
{% if config_files %}
{% for config in config_files %}
< option value = "{{ config }}" >
{{ config.replace(".json", '') }}
< / option >
{% endfor %}
{% else %}
< option disabled >
No saved configs
< / option >
{% endif %}
< / select >
< input name = "load" type = "submit" value = "Load" onclick = "return confirm('Detach all current device and Load config?')" >
< input name = "delete" type = "submit" value = "Delete" onclick = "return confirm('Delete config file?')" >
< / form > < / p >
< p > < form action = "/config/save" method = "post" >
< input name = "name" placeholder = "default" size = "20" >
< input type = "submit" value = "Save" >
< / form > < / p >
< table border = "black" cellpadding = "3" >
< tbody >
2020-12-31 01:39:32 +00:00
< tr >
< td > < b > ID< / b > < / td >
2021-11-07 00:25:02 +00:00
{% if units %}
2021-10-13 09:03:31 +00:00
< td > < b > LUN< / b > < / td >
2021-11-07 00:25:02 +00:00
{% endif %}
2020-12-31 01:39:32 +00:00
< td > < b > Type< / b > < / td >
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< td > < b > Status< / b > < / td >
2020-12-31 01:39:32 +00:00
< td > < b > File< / b > < / td >
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< td > < b > Product< / b > < / td >
< td > < b > Actions< / b > < / td >
2020-12-31 01:39:32 +00:00
< / tr >
{% for device in devices %}
< tr >
2021-09-19 21:29:01 +00:00
{% if device["id"] not in reserved_scsi_ids %}
2021-11-07 00:25:02 +00:00
< td style = "text-align:center" > {{ device.id }}< / td >
{% if units %}
< td style = "text-align:center" > {{ device.un }}< / td >
{% endif %}
< td style = "text-align:center" > {{ device.device_type }}< / td >
< td style = "text-align:center" > {{ device.status }}< / td >
< td style = "text-align:left" > {{ device.file }}< / td >
{% if device.vendor == "RaSCSI" %}
< td style = "text-align:center" > {{ device.product }}< / td >
{% else %}
< td style = "text-align:center" > {{ device.vendor }} {{ device.product }}< / td >
{% endif %}
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< td style = "text-align:left" >
2021-11-07 00:25:02 +00:00
{% if device.device_type != "-" %}
{% if device.device_type in REMOVABLE_DEVICE_TYPES and "No Media" not in device.status %}
2021-09-23 00:16:23 +00:00
< form action = "/scsi/eject" method = "post" onsubmit = "return confirm('Eject Disk?')" >
2021-11-07 00:25:02 +00:00
< input name = "scsi_id" type = "hidden" value = "{{ device.id }}" >
< input name = "unit" type = "hidden" value = "{{ device.un }}" >
< input type = "submit" value = "Eject" >
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< / form >
2020-12-31 01:39:32 +00:00
{% else %}
2021-11-07 00:25:02 +00:00
< form action = "/scsi/detach" method = "post" onsubmit = "return confirm('Detach Device?')" >
< input name = "scsi_id" type = "hidden" value = "{{ device.id }}" >
< input name = "unit" type = "hidden" value = "{{ device.un }}" >
< input type = "submit" value = "Detach" >
2020-12-31 01:39:32 +00:00
< / form >
2021-11-07 00:25:02 +00:00
{% endif %}
2021-09-23 00:16:23 +00:00
< form action = "/scsi/info" method = "post" >
2021-11-07 00:25:02 +00:00
< input name = "scsi_id" type = "hidden" value = "{{ device.id }}" >
< input name = "unit" type = "hidden" value = "{{ device.un }}" >
< input type = "submit" value = "Info" >
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< / form >
2021-11-07 00:25:02 +00:00
{% endif %}
2020-12-31 01:39:32 +00:00
< / td >
{% else %}
2021-11-07 00:25:02 +00:00
< td class = "inactive" > {{ device.id }}< / td >
{% if units %}
2021-10-13 09:03:31 +00:00
< td class = "inactive" > < / td >
2021-11-07 00:25:02 +00:00
{% endif %}
Move to protobuf for the webapp, major overhaul to easyinstall.sh, code comment translations (#229)
* Making saving and loading config files work with protobuf
* Formatted the Status column, and fixed the available ID logic
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Updated handling of removed status for devices without image file support
* Comment update
* Fixed typo
* Updated logging
* Better handling of device status
* Updated parameter handling
* Updated setting default interfaces
* Revert "Updated setting default interfaces"
This reverts commit 210abc775d9a79dd0c631cf3877966a2923f4d5b.
* Revert "Updated parameter handling"
This reverts commit 35302addd59f5f5e1cc032888ba32dcbb426a846.
* Abort with a 404 if rascsi is not running. Use any protobuf response to determine whether rascsi is running (should hardly be required anymore due to the other change, but just in case).
* Move id reservation back into __main__
* Remove check for device type when validating Removed image
* Leverage device property data for better status messages
* Remove redundant string sanitation when reading config csv file
* Clean up device list generation
* Cleanup
* Remove duplicates before building valid scsi id list
* Fully translated cfilesystem.h code comments to English; partially translated cfilesystem.cpp
* rascsi supports reserving IDs
* Updated help message
* Replaced BOOL by bool
* Logging update
* Logging update
* Cleanup
* Restructure the easyinstall.sh script to combine the install/update flows, and disallow installing the webapp by itself
* Remove redundant steps handled in Makefile
* Add the functionality to specify connect_type through a parameter
* Add validation to the argument parser allowing only STANDARD and FULLSPEC as options
* Complete translation of code comments for cfilesystem.h; partial translation for cfilesystem.cpp
* Cleanup
* Merge parts of the Network Assistant script by sonique6784; fix the run_choice startup parameter
* Improve on the network setup messages
* Fix routing address
* Add checks for previous configuration; cleanup
* Cleanup
* Remove redundant step in wired setup. Improve messages.
* Cleanup
* Added default parameters to device properties
* Return parameters a device was set up with
* Add flows for configuring custom network settings; adopting some logic by sonique6784
* Improved device initialization
* Updated default parameter handling
* Updated default parameter handling
* Fixed typo
* Comment updates
* Comment update
* Make iso generation work again, and add error handling to urllib actions
* Manage default parameters in the respective device
* Print available network interfaces. Clean up step and improve descriptive messages.
* Make the script clean up previous configurations
* Make the script only show relevant interfaces
* Partial translation of cfilesystem.cpp
* Do not pass empty parameter string
* Added supports_params flag
* Completely translate code comments in cfilesystem.cpp
* Show rascsi-web status after installing
* Refactoring
* Made comparisons more consistent
* Updated error handling
* Updated exception handling
* Made comparisons more consistent
* Updated error handling
* Overlooked code comment translation
* Renaming
* Better error handling for socket connection
* Disable two NEC hd image types due to issue#232
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Comment update
* NEC sectors size must be 512 bytes
* Updated logging
* Updated vendor name handling
* Updated handling of media loading/unloading
* Better handling of removable disks in the web ui
* Added stoppable property and stopped status
* Made MO stoppable
* Removed duplicate code
* Removed duplicate code
* Copy read-only property
* Renaming
* Add an assistant for reserving scsi ids
* Don't show action if no device attached
* Implement a device_info app path, and cut down on device columns always shown
* Cleanup
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Removed duplicate code, added START/STOP
* Improved default parameter handling
* Updated load/eject handling
* Logging update
* Fixed typo
* Verified START/STOP UNIT
* Updated logging
* Updated status handling
* Updated status handling
* More status handling updates
* Logging update
* Made instance fields local variables
* Made disk_t private
* Made some data structures private
* Fixed ARM compile issue
* Fast forward instead of rebase existing git repo
* Fixed ctapdriver initialization issue
* Reset read-only status when opening an image file
* Cleanup
* Cleanup
* Made logging more consistent
* Updated log level
* Cleanup
* Log load/eject on error level for testing
* Revert "Log load/eject on error level for testing"
This reverts commit d35a15ea8e520517d25e1e1054ad1aeda9f85f2e.
* Assume drive is not ready after having been stopped
* Updated status handling
* Make the csv config files store all relevant device data for reading
* Read 9 column csv config files
* Fixed typo
* Rebuild manpage
* Fixed issue #234 (MODE SENSE (10) returns wrong mode parameter header)
* Removed unused code
* Enum data type update
* Removed duplicate range check
* Removed duplicate code
* Removed more duplicate code
* Logging update
* SCCD sector size was not meant to be configurable
* Better error handling for csv reading and writing
* Updated configurable sector size properties
* Removed assertion
* Improved error handling
* Updated error handling
* Re-added special error handling only relevant for SASI
* Added TODOs
* Comment update
* Added override modifier
* Removed obsolete debug flag (related code was not called)
* Comment and logging updates
* Removed obsolete try/catch
* Revert "Removed obsolete try/catch"
This reverts commit 39ca12d8b153c706316ce79f4fec65c9abc60024.
* Comment update
* Removed duplicate code
* Updated error messages, use more foreach loops
* Avoid storing RaSCSI generated product info in config file
* Updated logging
* Logging update
* Save config files in json instead of csv
* Fix bugs with json config loading
* Refactoring & remove unused code
* Refactoring
* Display upper case file endings in file management list
* Only show product vendor for non-RaSCSI devices in the device list
* Translate code comment
* Refactoring
* Fix bad identation
* Improve valid file extension handling
* Add validation when attaching removable media
* Display valid file endings under the file list
* Cleanup
* Don't store 0 block size
* Fix indentation
* Read and write config files in key:pair format
* Add section for controlling logging
* README update
* Added block_count
* Cleanup, fix typos
* Support attaching CD-ROM with custom block size
* Evaluate block size when inserting a media
* rasctl display capacity if available
* Info message update
* Use kwargs for device attachment
* Fix bugs in attach_image kwargs; make config file more readable
* POC for attaching device with profile
* Only list product types valid for the particular image file
* Perform validation of HDD image size based on the product profile
* Implement sidecar config files for drive images.
* Added missing product name to NEC vital product data
* MO block size depends on capacity only
* Better error handling for device sidecar config loading
* Extended property/status display
* Property display update
* Updated error handling
* Handle image sizes in bytes internally
* Revert change
* Resolve bad merge
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2021-09-15 02:51:12 +00:00
< td class = "inactive" > < / td >
< td class = "inactive" > Reserved ID< / td >
< td class = "inactive" > < / td >
< td class = "inactive" > < / td >
< td class = "inactive" > < / td >
2020-12-31 01:39:32 +00:00
{% endif %}
< / tr >
{% endfor %}
2021-11-07 00:25:02 +00:00
< / tbody >
< / table >
< p > < form action = "/scsi/detach_all" method = "post" onsubmit = "return confirm('Detach all SCSI Devices?')" >
< input type = "submit" value = "Detach All Devices" >
< / form > < / p >
< hr / >
< details >
< summary class = "heading" >
Image File Management
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Manage image files in the active RaSCSI image directory: < tt > {{ base_dir }}< / tt > < / li >
< li > Select a valid SCSI ID and < a href = "https://en.wikipedia.org/wiki/Logical_unit_number" > LUN< / a > to attach to. Unless you know what you're doing, always use LUN 0.
< / li >
< li > If RaSCSI was unable to detect the device type associated with the image, you can choose the type from the dropdown.< / li >
< li > Types: SAHD = SASI HDD | SCHD = SCSI HDD | SCRM = Removable | SCMO = Magneto-Optical | SCCD = CD-ROM | SCBR = Host Bridge | SCDP = DaynaPORT< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
2021-09-28 20:39:08 +00:00
2021-11-07 00:25:02 +00:00
< table border = "black" cellpadding = "3" >
< tbody >
2020-12-31 01:39:32 +00:00
< tr >
< td > < b > File< / b > < / td >
< td > < b > Size< / b > < / td >
< td > < b > Actions< / b > < / td >
< / tr >
{% for file in files %}
< tr >
2021-10-24 06:00:40 +00:00
{% if file["prop"] %}
< td >
< details >
2021-11-07 00:25:02 +00:00
< summary >
{{ file["name"] }}
< / summary >
2021-10-24 06:00:40 +00:00
< ul >
{% for key in file["prop"] %}
2021-11-07 00:25:02 +00:00
< li > {{ key }}: {{ file['prop'][key] }}< / li >
2021-10-24 06:00:40 +00:00
{% endfor %}
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
2021-10-24 06:00:40 +00:00
< / td >
2021-11-07 00:25:02 +00:00
{% elif file["zip"] %}
2021-10-26 20:05:15 +00:00
< td >
< details >
2021-11-07 00:25:02 +00:00
< summary >
{{ file["name"] }}
< / summary >
2021-10-26 20:05:15 +00:00
< ul >
{% for member in file["zip"] %}
< / li >
2021-11-07 00:25:02 +00:00
< li >
< label for = "member" > {{ member }}< / label >
< form action = "/files/unzip" method = "post" >
< input name = "image" type = "hidden" value = "{{ file['name'] }}" >
< input name = "member" type = "hidden" value = "{{ member }}" >
< input type = "submit" value = "Unzip" >
< / form >
< / li >
2021-10-26 20:05:15 +00:00
{% endfor %}
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
2021-10-26 20:05:15 +00:00
< / td >
2021-11-07 00:25:02 +00:00
{% else %}
< td > {{ file["name"] }}< / td >
{% endif %}
2020-12-31 01:39:32 +00:00
< td style = "text-align:center" >
2021-09-23 00:16:23 +00:00
< form action = "/files/download" method = "post" >
2021-11-07 00:25:02 +00:00
< input name = "image" type = "hidden" value = "{{ file['name'] }}" >
< input type = "submit" value = "{{ file[" size_mb " ] } } MB & # 8595 ; " >
2020-12-31 01:39:32 +00:00
< / form >
< / td >
2021-11-07 00:25:02 +00:00
< td >
{% if file["name"] in attached_images %}
< center >
Attached!
< / center >
{% else %}
{% if file["name"].lower().endswith(archive_file_suffix) %}
< form action = "/files/unzip" method = "post" >
< input name = "image" type = "hidden" value = "{{ file['name'] }}" >
< input type = "submit" value = "Unzip All" >
< / form >
{% else %}
< form action = "/scsi/attach" method = "post" >
< input name = "file_name" type = "hidden" value = "{{ file['name'] }}" >
< input name = "file_size" type = "hidden" value = "{{ file['size'] }}" >
< label for = "id" > ID< / label >
2021-10-24 17:19:07 +00:00
< select name = "scsi_id" >
2020-12-31 01:39:32 +00:00
{% for id in scsi_ids %}
2021-11-07 00:25:02 +00:00
< option name = "id" value = "{{id}}" { % if id = = recommended_id % } selected { % endif % } >
{{ id }}
< / option >
{% endfor %}
< / select >
< label for = "unit" > LUN< / label >
< input name = "unit" type = "number" size = "2" value = "0" min = "0" max = "31" >
{% if file["detected_type"] != "UNDEFINED" %}
< input name = "type" type = "hidden" value = "{{ file['detected_type'] }}" >
{{ file["detected_type"] }}
{% else %}
< select name = "type" >
< option selected value = "" >
Type
< / option >
{% for d in device_types %}
< option value = "{{ d }}" >
{{ d }}
< / option >
2020-12-31 01:39:32 +00:00
{% endfor %}
2021-11-07 00:25:02 +00:00
{% endif %}
2021-09-26 03:27:43 +00:00
< / select >
2021-11-07 00:25:02 +00:00
< input type = "submit" value = "Attach" >
{% endif %}
2020-12-31 01:39:32 +00:00
< / form >
2021-09-23 00:16:23 +00:00
< form action = "/files/delete" method = "post" onsubmit = "return confirm('Delete file?')" >
2021-11-07 00:25:02 +00:00
< input name = "image" type = "hidden" value = "{{ file['name'] }}" >
< input type = "submit" value = "Delete" >
2020-12-31 01:39:32 +00:00
< / form >
2021-11-07 00:25:02 +00:00
{% endif %}
2020-12-31 01:39:32 +00:00
< / td >
< / tr >
{% endfor %}
2021-11-07 00:25:02 +00:00
< / tbody >
< / table >
< p > < small > Available disk space on the Pi: {{ free_disk }} MB< / small > < / p >
2020-12-31 01:39:32 +00:00
2021-11-07 00:25:02 +00:00
< hr / >
2021-09-23 19:43:05 +00:00
2021-11-07 00:25:02 +00:00
< details >
< summary class = "heading" >
Attach Ethernet Adapter
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Emulates a SCSI DaynaPORT Ethernet Adapter. < a href = "https://github.com/akuker/RASCSI/wiki/Dayna-Port-SCSI-Link#-macintosh-setup-instructions" > Host drivers and configuration required< / a > .
< / li >
< li > If you have a DHCP setup, choose only the interface, and ignore the Static IP fields when attaching.< / li >
< li > Configure network forwarding by running easyinstall.sh, or follow the < a href = "https://github.com/akuker/RASCSI/wiki/Dayna-Port-SCSI-Link#manual-setup" > manual steps in the wiki< / a > .
< / li >
< li style = "list-style: none" > {% if bridge_configured %}< / li >
< li > The < tt > rascsi_bridge< / tt > interface is active and ready to be used by DaynaPORT!< / li >
< li style = "list-style: none" > {% endif %}< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/daynaport/attach" method = "post" >
< label for = "if" > Interface:< / label >
< select name = "if" >
{% for if in netinfo["ifs"] %}
< option value = "{{ if }}" >
{{ if }}
< / option >
{% endfor %}
< / select >
< label for = "ip" > Static IP (optional):< / label >
< input name = "ip" type = "text" size = "15" placeholder = "10.10.20.1" minlength = "7" maxlength = "15" pattern = "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" >
< input name = "mask" type = "number" size = "2" placeholder = "24" min = "16" max = "30" >
< label for = "scsi_id" > SCSI ID:< / label >
< select name = "scsi_id" >
{% for id in scsi_ids %}
< option value = "{{ id }}" { % if id = = recommended_id % } selected { % endif % } >
{{ id }}
< / option >
{% endfor %}
< / select >
< input type = "submit" value = "Attach" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Upload File
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Uploads file to < tt > {{ base_dir }}< / tt > . The largest file size accepted is {{ max_file_size }} MB.< / li >
< li > For unrecognized file types, try renaming hard drive images to '.hds' and CD-ROM images to '.iso' before uploading.< / li >
< li > Recognized file types: {{ valid_file_suffix }}< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form name = "dropper" action = "/files/upload" method = "post" class = "dropzone dz-clickable" enctype = "multipart/form-data" id = "dropper" > < / form >
< / td >
< / tr >
< / table >
< script type = "application/javascript" >
2021-09-22 05:51:06 +00:00
Dropzone.options.dropper = {
paramName: 'file',
2021-11-07 00:25:02 +00:00
acceptedFiles: '{{ valid_file_suffix }}',
2021-09-22 05:51:06 +00:00
chunking: true,
forceChunking: true,
url: '/files/upload',
2021-11-07 00:25:02 +00:00
maxFilesize: {{ max_file_size }}, // MB
2021-09-22 05:51:06 +00:00
chunkSize: 1000000 // bytes
2021-09-21 23:55:08 +00:00
}
2021-11-07 00:25:02 +00:00
< / script >
2020-12-31 01:39:32 +00:00
2021-11-07 00:25:02 +00:00
< hr / >
2020-12-31 01:39:32 +00:00
2021-11-07 00:25:02 +00:00
< details >
< summary class = "heading" >
Download File to Images
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Given a URL, download that file to the < tt > {{ base_dir }}< / tt > directory.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/files/download_to_images" method = "post" >
< label for = "url" > URL:< / label >
< input name = "url" placeholder = "URL" required = "" type = "url" >
< input type = "submit" value = "Download" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Download File to AppleShare
< / summary >
2021-10-20 00:43:15 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Given a URL, download that file to the < tt > {{ AFP_DIR }}< / tt > directory and share it over AFP.< / li >
< li > Manage the files you download here through AppleShare on your vintage Mac.< / li >
< li > Requires < a href = "https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing" > Netatalk< / a > to be installed and configured correctly for your network.
< / li >
2021-10-20 00:43:15 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
{% if netatalk_configured %}
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/files/download_to_afp" method = "post" >
< label for = "url" > URL:< / label >
< input name = "url" placeholder = "URL" required = "" type = "url" >
< input type = "submit" value = "Download" >
< / form >
< / td >
< / tr >
< / table >
{% if netatalk_configured == 1 %}
< p > < small > The AppleShare server is running. No active connections< / small > < / p >
{% elif netatalk_configured == 2 %}
< p > < small > {{ netatalk_configured - 1 }} active AFP connection< / small > < / p >
{% elif netatalk_configured > 2 %}
< p > < small > {{ netatalk_configured - 1 }} active AFP connections< / small > < / p >
{% endif %}
{% else %}
< p > Install < a href = "https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing" > Netatalk< / a > to use the AppleShare File Server.< / p >
{% endif %}
< hr / >
< details >
< summary class = "heading" >
Download File and Create HFS CD (Macintosh)
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Given a URL this will download a file, create a HFS iso, and mount it on the SCSI ID given.< / li >
< li > Requires a < a href = "https://github.com/akuker/RASCSI/wiki/Drive-Setup#Mounting_CD_ISO_or_MO_images" > compatible CD-ROM driver< / a > installed on the target system.
< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< label for = "scsi_id" > SCSI ID:< / label >
< form action = "/files/download_to_iso" method = "post" >
< select name = "scsi_id" >
{% for id in scsi_ids %}
< option value = "{{ id }}" { % if id = = recommended_id % } selected { % endif % } >
{{ id }}
< / option >
{% endfor %}
< / select >
< label for = "url" > URL:< / label >
< input name = "url" placeholder = "URL" required = "" type = "url" >
< input type = "submit" value = "Download and Mount ISO" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Create Empty Disk Image File
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > The Generic image type is recommended for most systems< / li >
< li > APPLE GENUINE and NEC GENUINE image types will make RaSCSI masquerade as a particular drive type that are recognized by Mac and PC98 systems, respectively.< / li >
< li > SASI images should only be used on early X68000 or UNIX workstation systems that use this pre-SCSI standard.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/files/create" method = "post" >
< label for = "file_name" > File Name:< / label >
< input name = "file_name" placeholder = "File name" required = "" type = "text" >
< label for = "type" > Type:< / label >
< select name = "type" >
< option value = "hds" >
SCSI Hard Disk image (Generic) [.hds]
< / option >
< option value = "hda" >
SCSI Hard Disk image (APPLE GENUINE - use with Mac) [.hda]
< / option >
< option value = "hdn" >
SCSI Hard Disk image (NEC GENUINE - use with PC98) [.hdn]
< / option >
< option value = "hdr" >
SCSI Removable Media Disk image (Generic) [.hdr]
< / option >
< option value = "hdf" >
SASI Hard Disk image (use with X68000) [.hdf]
< / option >
< / select >
< label for = "size" > Size:< / label >
< input name = "size" type = "number" placeholder = "MB" min = "1" size = "6" required >
< input type = "submit" value = "Create" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Create Named Drive
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Here you can create pairs of images and properties files from a list of real-life drives.< / li >
< li > This will make RaSCSI use certain vendor strings and block sizes that may improve compatibility with certain systems< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< p > < a href = "/drive/list" > Create a named disk image that mimics real-life drives< / a > < / p >
2021-09-28 20:39:08 +00:00
2021-11-07 00:25:02 +00:00
< hr / >
2021-09-19 21:29:01 +00:00
2021-11-07 00:25:02 +00:00
< details >
< summary class = "heading" >
Logging
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Get a certain number of lines of service logs with the given scope.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/logs/show" method = "post" >
< label for = "lines" > Log Lines:< / label >
< input name = "lines" type = "number" placeholder = "200" min = "1" size = "4" >
< label for = "scope" > Scope:< / label >
< select name = "scope" >
< option value = "default" >
default
< / option >
< option value = "rascsi" >
rascsi.service
< / option >
< option value = "rascsi-web" >
rascsi-web.service
< / option >
< / select >
< input type = "submit" value = "Show Logs" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Server Log Level
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Change the log level of the RaSCSI backend service.< / li >
< li > The dropdown will indicate the current log level.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/logs/level" method = "post" >
< label for = "level" > Log Level:< / label >
< select name = "level" >
{% for level in log_levels %}
< option value = "{{ level }}" { % if level = = current_log_level % } selected { % endif % } >
{{ level }}
< / option >
{% endfor %}
< / select >
< input type = "submit" value = "Set Log Level" >
< / form >
< / td >
< / tr >
< / table >
< hr / >
< details >
< summary class = "heading" >
Raspberry Pi Operations
< / summary >
2021-09-28 20:39:08 +00:00
< ul >
2021-11-07 00:25:02 +00:00
< li > Issue reboot or shutdown commands to the Raspberr Pi.< / li >
< li > You can also restart the RaSCSI backend service here.< / li >
2021-09-28 20:39:08 +00:00
< / ul >
2021-11-07 00:25:02 +00:00
< / details >
< table style = "border: none" >
< tr style = "border: none" >
< td style = "border: none; vertical-align:top;" >
< form action = "/pi/reboot" method = "post" onsubmit = "return confirm('Reboot Pi?')" >
< input type = "submit" value = "Reboot Raspberry Pi" >
< / form >
< / td >
< td style = "border: none; vertical-align:top;" >
< form action = "/pi/shutdown" method = "post" onsubmit = "return confirm('Shutdown Pi?')" >
< input type = "submit" value = "Shut Down Raspberry Pi" >
< / form >
< / td >
< td style = "border: none; vertical-align:top;" >
< form action = "/rascsi/restart" method = "post" onsubmit = "return confirm('Restart RaSCSI?')" >
< input type = "submit" value = "Restart RaSCSI Service" >
< / form >
< / td >
< / tr >
< / table >
{% endblock content %}