commit | ff538ecd51dcc84537960bca538b797e5c98f28b | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Mon Mar 19 02:07:00 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Mon Mar 19 02:10:55 2012 +0400 |
tree | 2ee70c7503a816ca5a5a8edac0a5df544651b65a | |
parent | 338544ca3b1cb901d05328b16d65db6f99d2658d [diff] |
ploop: resize ploop image when vzctl set --diskspace is run Previous commit ebc46fc was incorrect, because vps_setup_res() is run for every vzctl start and, if a container is running, for vzctl set. This is the right place for vzquota, but not for ploop. For ploop we only need to do it on vzctl set stage, never minding the container status, and we don't have to do anything on vzctl start. Move the ploop resizing call to set(). Signed-off-by: Kir Kolyshkin <kir@openvz.org>