[pbs-devel] [PATCH proxmox-backup 2/2] tools: parse_objset_stat: drop the unecessary 'objset-' from the log
Dominik Csapak
d.csapak at proxmox.com
Mon Mar 7 09:13:31 CET 2022
'objset_id' already contains that, so the error was
"could not parse 'objset-objset-0xFFFF' stat file"
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/tools/disks/zfs.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tools/disks/zfs.rs b/src/tools/disks/zfs.rs
index a02baa00..30a6cc0c 100644
--- a/src/tools/disks/zfs.rs
+++ b/src/tools/disks/zfs.rs
@@ -124,7 +124,7 @@ fn parse_objset_stat(pool: &str, objset_id: &str) -> Result<(String, BlockDevSta
let text = match proxmox_sys::fs::file_read_optional_string(&path)? {
Some(text) => text,
- None => bail!("could not parse 'objset-{}' stat file", objset_id),
+ None => bail!("could not parse '{}' stat file", objset_id),
};
let mut dataset_name = String::new();
--
2.30.2
More information about the pbs-devel
mailing list