tape: fix tape alert flag values
This commit is contained in:
parent
e96464c795
commit
93be18ffd2
@ -17,61 +17,61 @@ bitflags::bitflags!{
|
||||
///
|
||||
/// See LTO SCSI Reference LOG_SENSE - LP 2Eh: TapeAlerts
|
||||
pub struct TapeAlertFlags: u64 {
|
||||
const READ_WARNING = 1 << 0x0001;
|
||||
const WRITE_WARNING = 1 << 0002;
|
||||
const HARD_ERROR = 1 << 0x0003;
|
||||
const MEDIA = 1 << 0x0004;
|
||||
const READ_FAILURE = 1 << 0x0005;
|
||||
const WRITE_FAILURE = 1 << 0x0006;
|
||||
const MEDIA_LIFE = 1 << 0x0007;
|
||||
const NOT_DATA_GRADE = 1 << 0x0008;
|
||||
const WRITE_PROTECT = 1 << 0x0009;
|
||||
const NO_REMOVAL = 1 << 0x000A;
|
||||
const CLEANING_MEDIA = 1 << 0x000B;
|
||||
const UNSUPPORTED_FORMAT = 1 << 0x000C;
|
||||
const RECOVERABLE_MECHANICAL_CARTRIDGE_FAILURE = 1 << 0x000D; // LTO5
|
||||
const UNRECOVERABLE_SNAPPED_TAPE = 1 << 0x000E;
|
||||
const MEMORY_CHIP_IN_CARTRIDGE_FAILURE = 1 << 0x000F;
|
||||
const FORCED_EJECT = 1 << 0x0010;
|
||||
const READ_ONLY_FORMAT = 1 << 0x0011;
|
||||
const TAPE_DIRECTORY_CORRUPTED = 1 << 0x0012;
|
||||
const NEARING_MEDIA_LIFE = 1 << 0x0013;
|
||||
const CLEAN_NOW = 1 << 0x0014;
|
||||
const CLEAN_PERIODIC = 1 << 0x0015;
|
||||
const EXPIRED_CLEANING_MEDIA = 1 << 0x0016;
|
||||
const INVALID_CLEANING_TAPE = 1 << 0x0017;
|
||||
const RETENSION_REQUEST = 1 << 0x0018; // LTO5
|
||||
const HOST_CHANNEL_FAILURE = 1 << 0x0019;
|
||||
const COOLING_FAN_FAILURE = 1 << 0x001A;
|
||||
const POWER_SUPPLY_FAILURE = 1 << 0x001B;
|
||||
const POWER_CONSUMPTION = 1 << 0x001C; // LTO5
|
||||
const DRIVE_MANTAINANCE = 1 << 0x001D; // LTO5
|
||||
const HARDWARE_A = 1 << 0x001E;
|
||||
const HARDWARE_B = 1 << 0x001F;
|
||||
const INTERFACE = 1 << 0x0020;
|
||||
const EJECT_MEDIA = 1 << 0x0021;
|
||||
const DOWNLOAD_FAULT = 1 << 0x0022;
|
||||
const DRIVE_HUMIDITY = 1 << 0x0023; // LTO5
|
||||
const DRIVE_TEMPERATURE = 1 << 0x0024;
|
||||
const DRIVE_VOLTAGE = 1 << 0x0025;
|
||||
const PREDICTIVE_FAILURE = 1 << 0x0026;
|
||||
const DIAGNOSTICS_REQUIRED = 1 << 0x0027;
|
||||
const LOADER_STRAY_TAPE = 1 << 0x0029;
|
||||
const LOADER_HARDWARE = 1 << 0x002A;
|
||||
const LOADER_MAGAZINE = 1 << 0x002D;
|
||||
const DIMINISHED_NATIVE_CAPACITY = 1 << 0x0031;
|
||||
const LOST_STATISTICS = 1 << 0x0032;
|
||||
const TAPE_DIRECTORY_INVALID_AT_UNLOAD = 1 << 0x0033;
|
||||
const TAPE_SYSTEM_AREA_WRITE_FAILURE = 1 << 0x0034;
|
||||
const TAPE_SYSTEM_AREA_READ_FAILURE = 1 << 0x0035;
|
||||
const NO_START_OF_DATA = 1 << 0x0036;
|
||||
const LOADING_FAILURE = 1 << 0x0037;
|
||||
const UNRECOVERABLE_UNLOAD_FAILURE = 1 << 0x0038;
|
||||
const AUTOMATION_INTERFACE_FAILURE = 1 << 0x0039;
|
||||
const FIRMWARE_FAILURE = 1 << 0x003A;
|
||||
const WORM_INTEGRITY_CHECK_FAILED = 1 << 0x003B;
|
||||
const WORM_OVERWRITE_ATTEMPTED = 1 << 0x003C;
|
||||
const ENCRYPTION_POLICY_VIOLATION = 1 << 0x003D;
|
||||
const READ_WARNING = 1 << (0x0001 -1);
|
||||
const WRITE_WARNING = 1 << (0x0002 -1);
|
||||
const HARD_ERROR = 1 << (0x0003 -1);
|
||||
const MEDIA = 1 << (0x0004 -1);
|
||||
const READ_FAILURE = 1 << (0x0005 -1);
|
||||
const WRITE_FAILURE = 1 << (0x0006 -1);
|
||||
const MEDIA_LIFE = 1 << (0x0007 -1);
|
||||
const NOT_DATA_GRADE = 1 << (0x0008 -1);
|
||||
const WRITE_PROTECT = 1 << (0x0009 -1);
|
||||
const NO_REMOVAL = 1 << (0x000A -1);
|
||||
const CLEANING_MEDIA = 1 << (0x000B -1);
|
||||
const UNSUPPORTED_FORMAT = 1 << (0x000C -1);
|
||||
const RECOVERABLE_MECHANICAL_CARTRIDGE_FAILURE = 1 << (0x000D -1); // LTO5
|
||||
const UNRECOVERABLE_SNAPPED_TAPE = 1 << (0x000E -1);
|
||||
const MEMORY_CHIP_IN_CARTRIDGE_FAILURE = 1 << (0x000F -1);
|
||||
const FORCED_EJECT = 1 << (0x0010 -1);
|
||||
const READ_ONLY_FORMAT = 1 << (0x0011 -1);
|
||||
const TAPE_DIRECTORY_CORRUPTED = 1 << (0x0012 -1);
|
||||
const NEARING_MEDIA_LIFE = 1 << (0x0013 -1);
|
||||
const CLEAN_NOW = 1 << (0x0014 -1);
|
||||
const CLEAN_PERIODIC = 1 << (0x0015 -1);
|
||||
const EXPIRED_CLEANING_MEDIA = 1 << (0x0016 -1);
|
||||
const INVALID_CLEANING_TAPE = 1 << (0x0017 -1);
|
||||
const RETENSION_REQUEST = 1 << (0x0018 -1); // LTO5
|
||||
const HOST_CHANNEL_FAILURE = 1 << (0x0019 -1);
|
||||
const COOLING_FAN_FAILURE = 1 << (0x001A -1);
|
||||
const POWER_SUPPLY_FAILURE = 1 << (0x001B -1);
|
||||
const POWER_CONSUMPTION = 1 << (0x001C -1); // LTO5
|
||||
const DRIVE_MANTAINANCE = 1 << (0x001D -1); // LTO5
|
||||
const HARDWARE_A = 1 << (0x001E -1);
|
||||
const HARDWARE_B = 1 << (0x001F -1);
|
||||
const INTERFACE = 1 << (0x0020 -1);
|
||||
const EJECT_MEDIA = 1 << (0x0021 -1);
|
||||
const DOWNLOAD_FAULT = 1 << (0x0022 -1);
|
||||
const DRIVE_HUMIDITY = 1 << (0x0023 -1); // LTO5
|
||||
const DRIVE_TEMPERATURE = 1 << (0x0024 -1);
|
||||
const DRIVE_VOLTAGE = 1 << (0x0025 -1);
|
||||
const PREDICTIVE_FAILURE = 1 << (0x0026 -1);
|
||||
const DIAGNOSTICS_REQUIRED = 1 << (0x0027 -1);
|
||||
const LOADER_STRAY_TAPE = 1 << (0x0029 -1);
|
||||
const LOADER_HARDWARE = 1 << (0x002A -1);
|
||||
const LOADER_MAGAZINE = 1 << (0x002D -1);
|
||||
const DIMINISHED_NATIVE_CAPACITY = 1 << (0x0031 -1);
|
||||
const LOST_STATISTICS = 1 << (0x0032 -1);
|
||||
const TAPE_DIRECTORY_INVALID_AT_UNLOAD = 1 << (0x0033 -1);
|
||||
const TAPE_SYSTEM_AREA_WRITE_FAILURE = 1 << (0x0034 -1);
|
||||
const TAPE_SYSTEM_AREA_READ_FAILURE = 1 << (0x0035 -1);
|
||||
const NO_START_OF_DATA = 1 << (0x0036 -1);
|
||||
const LOADING_FAILURE = 1 << (0x0037 -1);
|
||||
const UNRECOVERABLE_UNLOAD_FAILURE = 1 << (0x0038 -1);
|
||||
const AUTOMATION_INTERFACE_FAILURE = 1 << (0x0039 -1);
|
||||
const FIRMWARE_FAILURE = 1 << (0x003A -1);
|
||||
const WORM_INTEGRITY_CHECK_FAILED = 1 << (0x003B -1);
|
||||
const WORM_OVERWRITE_ATTEMPTED = 1 << (0x003C -1);
|
||||
const ENCRYPTION_POLICY_VIOLATION = 1 << (0x003D -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user