]> git.proxmox.com Git - pve-container.git/commit
Fix mounting ZFS snapshots whose dataset is not mounted below '/'
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 18 Feb 2020 11:31:22 +0000 (12:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Mar 2020 14:18:03 +0000 (15:18 +0100)
commit3ceee38d6d4b86bf9c80ce3a15c671f8fbf797cd
tree3de2d4ba6f0a3397442810fa4724b79d15d3accd
parent6df88c36399fe27739ea249044aa213f726459c9
Fix mounting ZFS snapshots whose dataset is not mounted below '/'

Trying to back up a container with a ZFS dataset with non-standard mount
would fail, see [0].

This also removes the near-dead code
$name .= "\@$snapname";
when snapname is false-y, but defined and turns
the check for $snapname into one for definedness.

[0]: https://forum.proxmox.com/threads/lxc-backup-fails-unable-to-open-the-dataset-vzdump.64944/

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