]> git.proxmox.com Git - pve-storage.git/commit
zfspoolplugin: check if imported before importing
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 19 Feb 2021 12:45:44 +0000 (13:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 13:22:43 +0000 (14:22 +0100)
commite74b9dd79d12f0e796db30b4d1f7cb1c4d02f08a
tree09be3c2454dc2536435256a9a6cb418aa83ee741
parent56a7637adbb76cde8364d8786faa7d8166255dcd
zfspoolplugin: check if imported before importing

This commit is a small performance optimization to the previous one:
`zpool list` is cheaper than `zpool import -d /dev..` (the latter
scans the disks in the provided directory for zfs signatures,
unconditionally)

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