]> git.proxmox.com Git - pve-common.git/commit - src/PVE/SysFSTools.pm
SysFSTools: get name from mediated device types
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 12 Aug 2022 09:29:48 +0000 (11:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 Aug 2022 11:40:47 +0000 (13:40 +0200)
commit0fbcf73656a86e75acac7a008621e5da193b21a7
treeb1dd041fd3f59eedc122e11e0d545aec50a13d83
parent2e8331ba22db97e439db8d73f0c1e5529a3c63b3
SysFSTools: get name from mediated device types

Some vendors also provide a 'name' file here for the type, which, in case of
NVIDIA, is the official name for the vGPU type in their documentation,
so extract and return it too (if it exists).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/SysFSTools.pm