commit | 788cb03bea6b1350565b1f1ef5ceb7327e3ed6b2 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Thu Nov 18 18:18:44 2010 +0300 |
committer | Kir Kolyshkin <kir@openvz.org> | Thu Nov 18 18:38:27 2010 +0300 |
tree | 15bb4cc78665dab58d83fe8f24fbb14872ffc17a | |
parent | b63910d235f682228fae877d427acd968ea150b3 [diff] |
quota_ctl(), vps_set_quota(): refactor/fix There is no need to do hairy trickery with return values in quota_ctl() -- always return the exit code of vzquota. In vps_set_quota(), when we run quota_ctl(STAT2), we need to find out if UGID quota is running or not. If it's not running vzquota returns exit code of 9, which we check for. Signed-off-by: Kir Kolyshkin <kir@openvz.org>