vzctl snapshot-switch: reread saved config
This is a fix to commit dbd1283 which didn't work at all because of
this.
Test case (on an SMP box!):
# vzctl exec $CTID grep -cw processor /proc/cpuinfo
N (where N > 1)
# vzctl snapshot $CTID
Creating snapshot {some-id}
...
Snapshot {some-id} has been successfully created
# vzctl set $CTID --cpus 1 --save
# vzctl exec $CTID grep -cw processor /proc/cpuinfo
1
# vzctl snapshot-switch $CTID --id some-id
...
Container start in progress...
Restoring completed successfully
Container has been successfully switched to another snapshot
# vzctl exec $CTID grep -cw processor /proc/cpuinfo
If 1 is shown, this means CT config was not re-read.
If N is shown -- this bug is fixed.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed