[pbs-devel] [PATCH proxmox-backup v2 3/6] tape: changer: sg_pt: fix typo
Dominik Csapak
d.csapak at proxmox.com
Wed Jul 21 17:10:40 CEST 2021
ok, since its a private struct
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
no change in v2
src/tape/changer/sg_pt_changer.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tape/changer/sg_pt_changer.rs b/src/tape/changer/sg_pt_changer.rs
index 908311b0..a15d8192 100644
--- a/src/tape/changer/sg_pt_changer.rs
+++ b/src/tape/changer/sg_pt_changer.rs
@@ -536,7 +536,7 @@ impl SubHeader {
#[repr(C, packed)]
#[derive(Endian)]
-struct TrasnsportDescriptor { // Robot/Griper
+struct TransportDescriptor { // Robot/Griper
element_address: u16,
flags1: u8,
reserved_3: u8,
@@ -665,7 +665,7 @@ fn decode_element_status_page(
match subhead.element_type_code {
1 => {
- let desc: TrasnsportDescriptor = unsafe { reader.read_be_value()? };
+ let desc: TransportDescriptor = unsafe { reader.read_be_value()? };
let full = (desc.flags1 & 1) != 0;
let volume_tag = subhead.parse_optional_volume_tag(&mut reader, full)?;
--
2.30.2
More information about the pbs-devel
mailing list