From 81ac60768f0eecc22684a3400bc8b592db4bb206 Mon Sep 17 00:00:00 2001 From: Johnny Silverman Date: Sat, 8 Nov 2025 16:11:57 +0200 Subject: [PATCH] Read all information about devices in smartctl (not only SMART). --- src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index ae4416e..3e4b4c0 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -99,7 +99,7 @@ QPair utils::scanDevices(bool initializing) for (const QJsonValue &value : std::as_const(devices)) { QJsonObject device = value.toObject(); QString deviceName = device["name"].toString(); - commandList.append((smartctlPath + " --all --json=o %1").arg(deviceName)); + commandList.append((smartctlPath + " -x --json=o %1").arg(deviceName)); } QString command = commandList.join(" ; "); @@ -139,7 +139,7 @@ QString utils::initiateSelfTest(const QString &testType, const QString &deviceNo QProcess process; QString command = getSmartctlPath(); QStringList arguments; - arguments << command << "--json=o" << "-t" << testType << deviceNode; + arguments << command << "--json=o" << "-x" << "-t" << testType << deviceNode; process.start("pkexec", arguments); process.waitForFinished(-1);