[pbs-devel] applied: [PATCH proxmox-backup 3/4] tape: changer: sg_pt: fix typo

Dietmar Maurer dietmar at proxmox.com
Wed Jul 21 17:02:39 CEST 2021


applied

On 7/21/21 4:04 PM, Dominik Csapak wrote:
> ok, since its a private struct
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>   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)?;





More information about the pbs-devel mailing list