We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a18aee3 commit fd2cec8Copy full SHA for fd2cec8
crates/disks/src/lib.rs
@@ -68,7 +68,7 @@ impl BlockDevice {
68
match **disk {
69
Disk::Scsi(_) | Disk::Virtual(_) => {
70
// Add N to the end of the device name
71
- return disk.device_path().join(format!("{}{}", disk.name(), index));
+ return disk.device_path().with_file_name(format!("{}{}", disk.name(), index));
72
}
73
Disk::Mock(ref d) if d.parts_prefix => {
74
return PathBuf::from("/dev").join(format!("{}p{}", disk.name(), index));
0 commit comments