]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
use model from udevadm
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 17 Oct 2016 08:29:11 +0000 (10:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Oct 2016 08:19:40 +0000 (10:19 +0200)
commit865bdbd9178eb63a4ec3357c1bc4cc36f25d79e1
tree9c72a17b139356fd20d5fef5058d7f5e05f459b9
parent10a48db55c642155e25a4ac2cd7347915f8f918e
use model from udevadm

we want this, because the model in /sys/block/<device>/device/model
is limited to 16 characters

and since the model is not always in the udevadm output (nvme),
also read the model from the model file as fallback

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