From 50a4797fb19749e85f9d43af521b17576e56aaca Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 2 Feb 2021 14:00:34 +0100 Subject: [PATCH] api2/types/tape/media: add media_set_ctime to MediaContentEntry to be able to better sort in the ui Signed-off-by: Dominik Csapak --- src/api2/tape/media.rs | 1 + src/api2/types/tape/media.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/api2/tape/media.rs b/src/api2/tape/media.rs index 70af454c..fd80a933 100644 --- a/src/api2/tape/media.rs +++ b/src/api2/tape/media.rs @@ -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(), diff --git a/src/api2/types/tape/media.rs b/src/api2/types/tape/media.rs index 2da1849b..9ab2597a 100644 --- a/src/api2/types/tape/media.rs +++ b/src/api2/types/tape/media.rs @@ -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