mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
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:
parent
762ed2b940
commit
baae3c7641
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue