linux drivelist: Trim lsblk output

Rather than using all possible output from lsblk -
which in testing produces ~45k of output on
Raspberry Pi 5 running Bookworm, instead constrain
to just the fields we actually use - just over 8k on the same system.
This commit is contained in:
Tom Dewey 2024-07-31 13:34:17 +01:00 committed by Tom Dewey
parent 762ed2b940
commit baae3c7641

View file

@ -48,7 +48,13 @@ namespace Drivelist
std::vector<DeviceDescriptor> deviceList;
QProcess p;
QStringList args = { "--bytes", "--json", "--paths", "--output-all", "--exclude", "7" };
QStringList args = {
"--bytes",
"--json",
"--paths",
"--output", "kname,type,subsystems,ro,rm,hotplug,size,phy-sec,log-sec,label,vendor,model,mountpoint",
"--exclude", "7"
};
p.start("lsblk", args);
p.waitForFinished(2000);
QByteArray output = p.readAll();