commit | 7ce7733f69b88014e1d69f157dd86c9d6dc83acb | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue Mar 25 18:26:11 2014 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue Mar 25 18:32:14 2014 -0700 |
tree | 5a679b6eeb8ae025ec0a0bb1cdd4b4a51b02de53 | |
parent | eaed966bbcf2c88589827b0b652cfb9b0b391880 [diff] |
vzmigrate: lock CT locally Introduce proper CT locking so no other operation could be performed on container while it is being migrated. Add appropriate error code in case CT is already locked, and describe it in man page. Note we take lock before checking CT status and release it at the very end (or on error path). Hopefully, this will prevent bad situations from happening (say vzctl snapshot running in parallel with vzmigrate). Signed-off-by: Kir Kolyshkin <kir@openvz.org>