From 2dba88795237a790d20bdc3694a64917796ddd8b Mon Sep 17 00:00:00 2001 From: Mateus Melchiades Date: Mon, 29 Jan 2024 22:38:27 +0000 Subject: [PATCH] Run pvscan --cache on pvremove --- core/lvm/lvm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/lvm/lvm.go b/core/lvm/lvm.go index 78b3c20b..16b1c6b9 100644 --- a/core/lvm/lvm.go +++ b/core/lvm/lvm.go @@ -133,6 +133,10 @@ func Pvremove(pv interface{}) error { return fmt.Errorf("pvremove: %v", err) } + for _, path := range pvPaths { + pvscanCache(path) + } + return nil }