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

Enable SD-Cards

parent 79643b8b
......@@ -72,7 +72,7 @@ fn parse_disks() -> Vec<Arc<DiskInformation>> {
let (_major, minor, no_blocks, name) = (parts.next(), parts.next(), parts.next(), parts.next());
if let Some(name) = name {
if minor == Some("0") && (name.starts_with("sd") || name.starts_with("nvme") || name.starts_with("xvd")) {
if minor == Some("0") && (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.
let no_blocks: u64 = no_blocks.unwrap_or("0").parse().unwrap_or(0);
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