diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2023-03-03 01:00:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-03 01:00:33 -0500 |
commit | caba6110360f9f4b487779433b09ef493627d5c7 (patch) | |
tree | d0963146958f41220c2217478cdd1181626fc762 /src | |
parent | a85af0501d7190f0d8c20893ba975908fe1a0522 (diff) |
docs: update changelog and some comments (#1040)
Diffstat (limited to 'src')
-rw-r--r-- | src/app/data_harvester/disks/freebsd.rs | 1 | ||||
-rw-r--r-- | src/app/data_harvester/disks/heim.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/data_harvester/disks/freebsd.rs b/src/app/data_harvester/disks/freebsd.rs index 5c6f6e80..a7eb7a8c 100644 --- a/src/app/data_harvester/disks/freebsd.rs +++ b/src/app/data_harvester/disks/freebsd.rs @@ -98,6 +98,7 @@ fn matches_ignore_list(filter_check_map: &[(&Option<Filter>, &String)]) -> bool } fn get_disk_info() -> io::Result<StorageSystemInformation> { + // TODO: Ideally we don't have to shell out to a new program. let output = std::process::Command::new("df") .args(["--libxo", "json", "-k", "-t", "ufs,msdosfs,zfs"]) .output()?; diff --git a/src/app/data_harvester/disks/heim.rs b/src/app/data_harvester/disks/heim.rs index 70840aba..ad8b08eb 100644 --- a/src/app/data_harvester/disks/heim.rs +++ b/src/app/data_harvester/disks/heim.rs @@ -76,7 +76,7 @@ pub async fn get_disk_usage( let filter_check_map = [(disk_filter, &name), (mount_filter, &mount_point)]; - // This represents case 1. That is, if there is a match in an allowing list - if there is, then + // This represents case 1. That is, if there is a match in an allowing list - if there is, then // immediately allow it! let matches_allow_list = filter_check_map.iter().any(|(filter, text)| { if let Some(filter) = filter { |