Get desktop application:
View/edit binary Protocol Buffers messages
Commands piscsi can execute and their parameters
The non-empty list of devices for this command
The named parameters for the operation, e.g. a filename, or a network interface list
The device data, sent from the server to the client
Used in:
Image file information, if the device supports image files
Effective parameters the device was created with
Block size in bytes
Number of blocks
The device definition, sent from the client to the server
Used in:
Device specific named parameters, e.g. the name of an image file
The optional block size in bytes per sector, must be one of the supported block sizes
The device name components
Create a write-protected device
The properties supported by a device
Used in:
,Read-only media (e.g. CD-ROMs) are not protectable but permanently read-only
Medium can be write-protected
Device can be stopped, e.g. parked
Medium can be removed
Medium can be locked
Device supports image file as a parameter
Device supports parameters other than a filename
List of default parameters, if any (requires supports_params to be true)
LUN numbers this device can have, usually 32
Unordered list of permitted block sizes in bytes, empty if the block size is not configurable
The status of a device, only meaningful if the respective feature is supported
Used in:
Medium is write-protected
Device is stopped, e.g. parked
Medium is removed
Medium is locked
The available device types
Used in:
, , , ,Non-removable SASI drive, not supported anymore but must not be removed because of backwards compatibility
Non-removable SCSI drive
Removable SCSI drive
Magnoto-Optical drive
CD-ROM drive
Network bridge
DaynaPort network adapter
Host services device
Printer device
Device properties by device type. (Note that a protobuf map cannot be used because enums cannot be map keys.)
Used in:
Used in:
,Used in:
,piscsi special purpose error codes for cases where a textual error message may not be not sufficient. The client may react on this code, e.g. by prompting the user for an authentication token.
Used in:
No error code available
The client sent an operation code not supported by this server
Authentication/Authorization error
The image file data
Used in:
, ,The assumed device type, based on the filename extension
The file size in bytes, 0 for block devices in /dev
The default image folder and the image files it contains
Used in:
,The maximum nesting depth, configured with the -R option
Log level information
Used in:
,List of available log levels, ordered by increasing by severity
The supported file extensions mapped to their respective device types
Used in:
,The network interfaces information
Used in:
,piscsi remote operations, returning PbResult
Used in:
Attach devices and return the new device list (PbDevicesInfo) Parameters (depending on the device type): "file": The filename relative to the default image folder "interface": A prioritized comma-separated list of interfaces to create a network bridge for "inet": The IP address and netmask for the network bridge "cmd": The command to be used for printing, with "%f" as file placeholder
Detach a device and return the new device list (PbDevicesInfo) Detaches all LUNs of that device which are equal to or higher than the LUN specified.
Detach all devices, does not require a device list
Start device
Stop device, e.g. park drive
Insert medium Parameters: "file": The filename, relative to the default image folder
Eject medium
Write-protect medium (not possible for read-only media)
Make medium writable (not possible for read-only media)
Gets the server information (PbServerInfo). Calling this operation without a list of operations should be avoided because this may return a lot of data. More specific other operations should be used instead. Parameters: "operations": Optional case insensitive comma-separated list of operation names to return data for, e.g. "version_info,log_level_info". Unknown operation names are ignored. If this parameter is missing the full set of data supported by PbServerInfo is returned. "folder_pattern": Optional filter, only folder names containing the case-insensitive pattern are returned "file_pattern": Optional filter, only filenames containing the case-insensitive pattern are returned
Get piscsi server version (PbVersionInfo)
Get information on attached devices (PbDevicesInfo) Returns data for all attached devices if the device list is empty.
Get device properties by device type (PbDeviceTypesInfo)
Get information on available image files in the default image folder (PbImageFilesInfo) Parameters: "folder_pattern": Optional filter, only folder names containing the case-insensitive pattern are returned "file_pattern": Optional filter, only filenames containing the case-insensitive pattern are returned
Get information on an image file (not necessarily in the default image folder). Parameters: "file": The filename. Either an absolute path or a path relative to the default image folder.
Get information on the available log levels and the current log level (PbLogLevelInfo)
Get the names of the available network interfaces (PbNetworkInterfacesInfo) Only lists interfaces that are up.
Get the mapping of extensions to device types (PbMappingInfo)
Get the list of reserved device IDs (PbReservedIdsInfo)
Set the default folder for image files. This folder must be located in /home. Parameters: "folder": The path of the default folder, relative to the user's home folder if relative.
Set the log level. Parameters: "level": The new log level
Block IDs from being used, usually the IDs of the initiators (computers) in the SCSI chain. Parameters: "ids": A comma-separated list of IDs to reserve, or an empty string in order not to reserve any ID.
Shut down the piscsi process or shut down/reboot the Pi Parameters: "mode": The shutdown mode, one of "rascsi": Shuts down the piscsi process ("rascsi" instead of "piscsi" for backwards compatibility) "system": Shuts down the Pi "reboot": Reboots the Pi
Create an image file. The image file must not yet exist. Parameters: "file": The filename, relative to the default image folder "size": The file size in bytes, must be a multiple of 512 "read_only": Optional, "true" (case-insensitive) in order to create a read-only file
Delete an image file. Parameters: "file": The filename, relative to the default image folder.
Rename/Move an image file. Parameters: "from": The old filename, relative to the default image folder "to": The new filename, relative to the default image folder The new filename must not yet exist.
Copy an image file. Parameters: "from": The source filename, relative to the default image folder "to": The destination filename, relative to the default image folder "read_only": Optional, "true" (case-insensitive) in order to create a read-only file The destination filename must not yet exist.
Write-protect an image file. Parameters: "file": The filename, relative to the default image folder
Make an image file writable. Parameters: "file": The filename, relative to the default image folder
Check whether an authentication token is valid. A client can use this operation in order to find out whether piscsi authentication is enable or to use piscsi authentication for securing client-internal operations.
Get operation meta data (PbOperationInfo)
Get statistics (PbStatisticsInfo)
Mapping of operations to their ordinals
Used in:
,The list of parameters supported by an operation
Used in:
The operation name at the time the server-side protobuf code was generated.
Optional short description
The operation parameter meta data. The parameter data type is provided by the protobuf API.
Used in:
Optional short description
There is no specific set of permitted values if empty
Optional default value
True if this parameter is mandatory
The reserved device IDs
Used in:
,The result of a command
false means that an error occurred
An optional error or information message, depending on the status. A string without trailing CR/LF.
An optional error code. Only to be used in cases where textual information is not sufficient.
Optional additional result data
The result of a SERVER_INFO command
The result of a VERSION_INFO command
The result of a LOG_LEVEL_INFO command
The result of a DEVICES_INFO, ATTACH or DETACH command
The result of a DEVICE_TYPES_INFO command
The result of a DEFAULT_IMAGE_FILES_INFO command
The result of an IMAGE_FILE_INFO command
The result of a NETWORK_INTERFACES_INFO command
The result of an MAPPING_INFO command
The result of a RESERVED_IDS_INFO command
The result of an OPERATION_INFO command
The result of a STATISTICS_INFO command
The piscsi server information. All data can also be requested with individual commands.
Used in:
The piscsi server version data
The available log levels and the current log level
Supported device types and their properties
The image files in the default folder
The available (up) network interfaces
The extensions to device types mapping
The reserved device IDs
The attached devices
The operation meta data
The statistics
Used in:
The device ID and LUN for this statistics item. Both are -1 if the item is not device specific.
A symbolic unique item name, may be used for I18N. Supported values and their categories: "read_error_count" (ERROR, SCHD/SCRM/SCMO/SCCD) "write_error_count" (ERROR, SCHD/SCRM/SCMO) "cache_miss_read_count" (INFO, SCHD/SCRM/SCMO/SCCD) "cache_miss_write_count" (INFO, SCHD/SCRM/SCMO) "sector_read_count" (INFO, SCHD/SCRM/SCMO/SCCD) "sector_write_count" (INFO, SCHD/SCRM/SCMO) "byte_read_count" (INFO, SCDP) "byte_write_count" (INFO, SCDP) "print_error_count" (ERROR, SCLP) "print_warning_count" (WARNING, SCLP) "file_print_count" (INFO, SCLP) "byte_receive_count" (INFO, SCLP)
Statistics categories ordered by increasing severity
Used in:
The information on collected statistics
Used in:
,Piscsi server version information
Used in:
,The piscsi version
< 0 for a development version, = 0 if there is no patch yet