Skip to content

Commit b19c6f0

Browse files
authored
Pr0807 (#166)
* fix: Fix fail to get info from some USB device Some USB device information acquisition failures may occur; these should be ignored. Failure example: smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.6.0-amd64-desktop] (local build) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: aigo Product: U268 Revision: 2.00 Compliance: SPC-2 User Capacity: 62,914,560,000 bytes [62.9 GB] Logical block size: 512 bytes scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 >> Terminate command early due to bad response to IEC mode page A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. Log: Fix fail to get info from some USB device Bug: https://pms.uniontech.com/bug-view-303363.html * fix: Fix disk interface display abnormality The value of m_size is incorrectly stored in m_interface. Log: Fix disk interface display abnormality Bug: https://pms.uniontech.com/bug-view-327617.html * chore: Update version to 6.0.12 As title. Log: Update version to 6.0.12
1 parent 0fa88fd commit b19c6f0

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
deepin-diskmanager (6.0.12) unstable; urgency=medium
2+
3+
* fix: Fix fail to get info from some USB device
4+
* fix: Fix disk interface display abnormality
5+
6+
-- wangrong <wangrong@uniontech.com> Thu, 07 Aug 2025 20:12:39 +0800
7+
18
deepin-diskmanager (6.0.11) unstable; urgency=medium
29

310
* fix: Fix incomplete retrieval of disk hardware information

service/diskoperation/DeviceStorage.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void DeviceStorage::getInfoFromLshw(const QMap<QString, QString> &mapInfo)
245245
QRegularExpressionMatch match = re.match(m_size);
246246
if (match.hasMatch()) {
247247
qDebug() << "Size match found in lshw info";
248-
m_interface = match.captured(1);
248+
m_size = match.captured(1);
249249
}
250250
#else
251251
QRegExp re(".*\\((.*)\\)$");
@@ -685,10 +685,6 @@ QString DeviceStorage::getDiskInfoMediaType(const QString &devicePath)
685685
value = "0";
686686
}
687687
}
688-
if (exitcode != 0) {
689-
qDebug() << "Failed to execute smartctl command, error:" << error;
690-
return "UnKnow";
691-
}
692688
}
693689
if (QString("0") == value) {
694690
qDebug() << "return SSD";

0 commit comments

Comments
 (0)