]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Diskmanage: don't run zpool if not present
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 8 Apr 2019 12:38:36 +0000 (14:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Apr 2019 15:47:07 +0000 (17:47 +0200)
commit4526dffa53cdce8a3718df2fce05890539c04d41
treeb7f2a52103d1ac0aeb13b8bc4748ca1b1dcbf154
parente71336ad8883379c721592a88ac7905264df9ceb
Diskmanage: don't run zpool if not present

Since zfsutils are not a hard dependency of our stack it is possible to not have
`zpool` available.

Checking for existance of `zpool` before calling it suppresses spurious warnings
in the logs (e.g. when creating Ceph OSDs or accessing the 'Disk' Tab in the
GUI).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Diskmanage.pm