Skip to content

Commit b2c07f6

Browse files
committed
Merge pull request #262 from robhoes/unplug
Clear private xenstore data on VIF unplug
2 parents 93a7cb0 + 36e71d7 commit b2c07f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xc/hotplug.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,11 @@ let release (task:Xenops_task.t) ~xs (x: device) =
200200
debug "Hotplug.release: %s" (string_of_device x);
201201
wait_for_unplug task ~xs x;
202202
let hotplug_path = get_hotplug_path x in
203+
let private_data_path = get_private_data_path_of_device x in
203204
let extra_xenserver_path = extra_xenserver_path_of_device xs x in
204205
Xs.transaction xs (fun t ->
205206
t.Xst.rm hotplug_path;
207+
t.Xst.rm private_data_path;
206208
t.Xst.rm extra_xenserver_path
207209
)
208210

0 commit comments

Comments
 (0)