Skip to content

Commit

Permalink
Run pvscan --cache on pvremove
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Jan 29, 2024
1 parent ce67f80 commit 2dba887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/lvm/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ func Pvremove(pv interface{}) error {
return fmt.Errorf("pvremove: %v", err)
}

for _, path := range pvPaths {
pvscanCache(path)
}

return nil
}

Expand Down

0 comments on commit 2dba887

Please sign in to comment.