]> git.proxmox.com Git - pve-storage.git/commit
add workaround for zfs rollback bug
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 21 Jan 2021 15:47:59 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Jan 2021 17:32:47 +0000 (18:32 +0100)
commit26a8f21ab23c9e745e207ea48aa1b27f7f8f7ed4
tree7655a048b6ed1556ecdc704953abeba559a86f56
parentd3a5e30963b9c519b80cd7ab154a64048929b11c
add workaround for zfs rollback bug

as described in the zfs bug https://github.com/openzfs/zfs/issues/10931
the kernel keeps around cached data from mmaps after a rollback, thus
having invalid data in files that were allegedly rolled back

to workaround this (until a real fix comes along), we unmount the subvol,
invalidating the kernel cache anyway

the dataset gets mounted on the next 'activate_volume' again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm