]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/ZFSPoolPlugin.pm
ZFS: mount subvols in activate_volume
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 28 Sep 2020 09:48:37 +0000 (11:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Sep 2020 03:07:15 +0000 (05:07 +0200)
commit815df2dd08ac4c7295135262e60d64fbb57b8f5c
treed15ac3fcbc01b07ce248057ac0d94d38d88b0e0e
parentd0eaf18571a139025b792a9f27f9fc13216a5e9d
ZFS: mount subvols in activate_volume

Makes it possible to clone and start a container whose
ZFS subvols are not yet mounted for some reason. If a
subvol cannot be mounted, there's a better error now:
zfs error: cannot mount '/myzpool/subvol-103-disk-0': directory is not empty

Previously, cloning would quietly do an "empty" clone,
and startup would fail with:
mount_autodev: 1074 Permission denied - Failed to create "/dev" directory
lxc_setup: 3238 Failed to mount "/dev"
do_start: 1224 Failed to setup container "103"
__sync_wait: 41 An error occurred in another process (expected sequence number 5)

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm