esxi: clean-up state-dir in deactivate storage
to ensure we always query a new one on quick add-delete-add cycles. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -346,6 +346,10 @@ sub deactivate_storage {
|
||||
my ($class, $storeid, $scfg, $cache) = @_;
|
||||
|
||||
$class->esxi_unmount($storeid, $scfg);
|
||||
|
||||
my $rundir = run_path($storeid);
|
||||
remove_tree($rundir); # best-effort, ignore errors for now
|
||||
|
||||
}
|
||||
|
||||
sub activate_volume {
|
||||
|
||||
Reference in New Issue
Block a user