]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/backup/chunk_store.rs: allow to read name()
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 24 Jun 2020 04:54:21 +0000 (06:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 24 Jun 2020 04:54:21 +0000 (06:54 +0200)
This is helpful for logging ...

src/backup/chunk_store.rs

index 96ccbf2b0f6ef95397ad0f7658cf0062e85626e4..d21c232d64f38084abaaf0cf86f29876dc2e2816 100644 (file)
@@ -429,6 +429,10 @@ impl ChunkStore {
         full_path
     }
 
+    pub fn name(&self) -> &str {
+        &self.name
+    }
+
     pub fn base_path(&self) -> PathBuf {
         self.base.clone()
     }