api2/types/tape/media: add media_set_ctime to MediaContentEntry

to be able to better sort in the ui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-02-02 14:00:34 +01:00 committed by Dietmar Maurer
parent cc2a0b12f8
commit 50a4797fb1
2 changed files with 3 additions and 0 deletions

View File

@ -315,6 +315,7 @@ pub fn list_content(
pool: set.pool.clone(),
media_set_name: media_set_name.clone(),
media_set_uuid: set.uuid.clone(),
media_set_ctime: set.ctime,
seq_nr: set.seq_nr,
snapshot: snapshot.to_owned(),
backup_time: backup_dir.backup_time(),

View File

@ -138,6 +138,8 @@ pub struct MediaContentEntry {
pub media_set_name: String,
/// Media set uuid
pub media_set_uuid: Uuid,
/// MediaSet Creation time stamp
pub media_set_ctime: i64,
/// Media set seq_nr
pub seq_nr: u64,
/// Media Pool