Skip to content

Commit

Permalink
Fix formating issue in get_disk_detail. (#25)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
darnuria authored Nov 25, 2022
1 parent bf69c80 commit 124f605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jbod/disks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 124f605

Please sign in to comment.