From 124f6054b28864d93102bc1841ceb63753a0eda3 Mon Sep 17 00:00:00 2001 From: Axel Viala Date: Fri, 25 Nov 2022 11:06:37 +0100 Subject: [PATCH] Fix formating issue in get_disk_detail. (#25) Bug was introduced in f62e271 by myself, accidentally changed from `/device` to `/{device}`. `/device` need to be verbatim in path and not interpreted as device_name. --- src/jbod/disks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jbod/disks.rs b/src/jbod/disks.rs index 009365f..2ba6102 100644 --- a/src/jbod/disks.rs +++ b/src/jbod/disks.rs @@ -406,7 +406,7 @@ pub mod DiskShelf { || cmp_slot.contains("array device") || cmp_slot.bytes().all(|c| c.is_ascii_digit()) { - let generic_device = format!("{sys_class_enclosure}{enclosure_slot}/{_slot}/{device}"); + let generic_device = format!("{sys_class_enclosure}{enclosure_slot}/{_slot}/device"); let physical_device = format!("{generic_device}/scsi_generic/"); if Util::path_exists(&physical_device) {