tape: changer: save whole LtoTapeDrive config in MtxMediaChanger

we'll need more info from there in the future, so derive clone for it
and save the whole config instead of adding an additional field.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-12-07 13:51:01 +01:00 committed by Dietmar Maurer
parent e9283e93e7
commit a82bcf8ad1

View File

@ -59,7 +59,7 @@ pub struct VirtualTapeDrive {
},
}
)]
#[derive(Serialize, Deserialize, Updater)]
#[derive(Serialize, Deserialize, Updater, Clone)]
#[serde(rename_all = "kebab-case")]
/// Lto SCSI tape driver
pub struct LtoTapeDrive {