commit | f52f28f1071610dccfba02c87070c9a7822eefa8 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Wed Nov 17 12:46:48 2010 +0300 |
committer | Kir Kolyshkin <kir@openvz.org> | Wed Nov 17 12:46:48 2010 +0300 |
tree | 39614596d7941c13e7f170a1b55c0db539bea2eb | |
parent | 237f03c9480214cafb52cb3320839dbc1ca3a0b0 [diff] |
vzctl quotaoff: fix wrong exit code if quota is not running If quota is not running, we should not return an error when trying to turn it off. There is such a code already, but it forgot to set ret to zero, therefore the native exit code from vzquota (6) was returned by vzctl which makes no sense (for vzctl 6 means "Not enough system resources"). Fix it by 'ret=0' in case quota is not running. Signed-off-by: Kir Kolyshkin <kir@openvz.org>