Skip to content

Commit f03ef3c

Browse files
shuaijiedeepin-bot[bot]
authored andcommitted
fix: show Longsys vendor
show Longsys vendor Log: show Longsys vendor Bug: https://pms.uniontech.com/bug-view-265057.html
1 parent b462768 commit f03ef3c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ bool DeviceStorage::setHwinfoInfo(const QMap<QString, QString> &mapInfo)
135135
// 希捷硬盘为ATA硬盘,无法直接获取厂商信息,只能特殊处理
136136
if (m_Name.startsWith("ST") && m_Vendor.isEmpty())
137137
m_Vendor = "ST";
138+
//根据产品PN中的固定前两位 RS来匹配厂商 为Longsys 如产品PN :RSYE3836N-480G RSYE3836N-960G RSYE3836N-1920 RSYE3836N-3840
139+
if (m_Name.startsWith("RS") && m_Vendor.isEmpty())
140+
m_Vendor = "Longsys";
138141

139142
setAttribute(mapInfo, "Driver", m_Driver); // 驱动
140143
QRegExp exp("pci 0x[0-9a-zA-Z]*");
@@ -748,4 +751,7 @@ void DeviceStorage::getInfoFromsmartctl(const QMap<QString, QString> &mapInfo)
748751
if(Common::boardVendorType() != "KLVV" && Common::boardVendorType() != "KLVU" \
749752
&& Common::boardVendorType() != "PGUW" && Common::boardVendorType() != "PGUV")
750753
m_Size.replace(QRegExp("\\.0[1-9]"), ".00");
754+
//根据产品PN中的固定前两位 RS来匹配厂商 为Longsys 如产品PN :RSYE3836N-480G RSYE3836N-960G RSYE3836N-1920 RSYE3836N-3840
755+
if (m_Name.startsWith("RS") && m_Vendor.isEmpty())
756+
m_Vendor = "Longsys";
751757
}

0 commit comments

Comments
 (0)