]> git.proxmox.com Git - pve-storage.git/commit
zfs: don't generate/update cachefile on pool import
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 3 Apr 2019 09:06:07 +0000 (11:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Apr 2019 10:18:37 +0000 (12:18 +0200)
commitc6f1315524b47678ea00d12c8f4bfb6041245bce
treefc3e5585ddca04a7715bac1343e5218cd425eb6d
parentcdef3abb25984c369571626b38f97f92a0a2fd15
zfs: don't generate/update cachefile on pool import

during storage activation.

for pools that don't get imported at boot (e.g. because their vdevs are
not available when zfs-import-*.service runs) it is fatal to include
them in the cachefile, for those that do get imported at boot this code
should never run anyway as they are already imported.

in any case, a fallback to import without cachefile is the safe variant.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm