SHADOW_CONTROL_OP_OFF should be checkign whether shadow mode

is actually currently enabled.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-22 11:53:45 +01:00
1 parent c4da02a2ab
commit 76866c7be5
2 files changed
+10 -4

No files matched your search

+5 -2
View File
@@ -1381,8 +1381,11 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
switch ( op )
{
case DOM0_SHADOW_CONTROL_OP_OFF:
__shadow_sync_all(d);
__shadow_mode_disable(d);
if ( shadow_mode_enabled(d) )
{
__shadow_sync_all(d);
__shadow_mode_disable(d);
}
break;
case DOM0_SHADOW_CONTROL_OP_ENABLE_TEST:
+5 -2
View File
@@ -1290,8 +1290,11 @@ int shadow_mode_control(struct domain *d, dom0_shadow_control_t *sc)
switch ( op )
{
case DOM0_SHADOW_CONTROL_OP_OFF:
__shadow_sync_all(d);
__shadow_mode_disable(d);
if ( shadow_mode_enabled(d) )
{
__shadow_sync_all(d);
__shadow_mode_disable(d);
}
break;
case DOM0_SHADOW_CONTROL_OP_ENABLE_TEST:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.