Fixed: Ignore duplicate disks with same mountpoint

This commit is contained in:
aristocratos 2022-02-17 22:28:10 +01:00
parent f7860f9d1b
commit 4e7a212f83
1 changed files with 4 additions and 2 deletions

View File

@ -885,6 +885,9 @@ namespace Mem {
while (not diskread.eof()) {
std::error_code ec;
diskread >> dev >> mountpoint >> fstype;
diskread.ignore(SSmax, '\n');
if (v_contains(found, mountpoint)) continue;
//? Match filter if not empty
if (not filter.empty()) {
@ -918,7 +921,6 @@ namespace Mem {
}
}
diskread.ignore(SSmax, '\n');
}
//? Remove disks no longer mounted or filtered out
if (swap_disk and has_swap) found.push_back("swap");