]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/ZFSPoolPlugin.pm
fix volume activation for ZFS subvols
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 19 Nov 2020 10:29:53 +0000 (11:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 22 Nov 2020 17:36:23 +0000 (18:36 +0100)
commit3893d2755e523cd81cf6a72253d5345bd555a8db
treec0486545f0ca3dfe2dea0b0595eef02761c5976a
parent68c4bca39e30664f72a67a22d41c7b9f1ec57a64
fix volume activation for ZFS subvols

When using the path to request properties, and no ZFS file system is mounted
at that path, ZFS will fall back to the parent filesystem:

> # zfs unmount myzpool/subvol-172-disk-0
> # zfs get mounted /myzpool/subvol-172-disk-0
> NAME     PROPERTY  VALUE    SOURCE
> myzpool  mounted   yes      -
> # zfs get mounted myzpool/subvol-172-disk-0
> NAME                       PROPERTY  VALUE    SOURCE
> myzpool/subvol-172-disk-0  mounted   no       -

Thus, we cannot use the path and need to use the dataset directly.

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