api2/types/tape/drive: add changer_drivenum
so that an api user can see which drive belongs to which drivenum of a changer for ones with multiple drives Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
8b1174f50a
commit
d8792b88ef
@ -82,6 +82,7 @@ pub struct LinuxTapeDrive {
|
||||
|
||||
#[api()]
|
||||
#[derive(Serialize,Deserialize)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
/// Drive list entry
|
||||
pub struct DriveListEntry {
|
||||
/// Drive name
|
||||
@ -91,6 +92,9 @@ pub struct DriveListEntry {
|
||||
/// Associated changer device
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub changer: Option<String>,
|
||||
/// Drive number in associated changer device
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub changer_drivenum: Option<u64>,
|
||||
/// Vendor (autodetected)
|
||||
#[serde(skip_serializing_if="Option::is_none")]
|
||||
pub vendor: Option<String>,
|
||||
|
Reference in New Issue
Block a user