Commit a4dfe26e authored by Stefan Schindler's avatar Stefan Schindler
Browse files

Add more devices

parent b4f2ac1d
...@@ -84,7 +84,9 @@ fn parse_disks() -> Vec<Arc<DiskInformation>> { ...@@ -84,7 +84,9 @@ fn parse_disks() -> Vec<Arc<DiskInformation>> {
let (_major, minor, no_blocks, name) = (parts.next(), parts.next(), parts.next(), parts.next()); let (_major, minor, no_blocks, name) = (parts.next(), parts.next(), parts.next(), parts.next());
if let Some(name) = name { if let Some(name) = name {
if minor == Some("0") && (name.starts_with("sd") || name.starts_with("nvme") || name.starts_with("xvd") || name.starts_with("mmcblk")) { if (minor == Some("0") || minor == Some("16"))
&&
(name.starts_with("sd") || name.starts_with("nvme") || name.starts_with("xvd") || name.starts_with("mmcblk")) {
/// Contains the major and minor numbers of each partition as well as the number of 1024-byte blocks and the partition name. /// Contains the major and minor numbers of each partition as well as the number of 1024-byte blocks and the partition name.
let no_blocks: u64 = no_blocks.unwrap_or("0").parse().unwrap_or(0); let no_blocks: u64 = no_blocks.unwrap_or("0").parse().unwrap_or(0);
i += 1; i += 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment