commit | b0409ff0bf021c338182637430d539697949768c | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue May 05 19:09:47 2015 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue May 05 19:09:47 2015 -0700 |
tree | 6791b51e073adfea667d09b9ad6148412ec54602 | |
parent | 4d4c21e1dbe315ce118783850ee7645cf8718fcd [diff] |
vps-create.sh: use stat -f instead of df On a node with a stale NFS mount (not related to /vz), vzctl create fails after a long timeout. It happens because vps-create calls df $VE_ROOT, but for some odd reason df wants to stat() all the mount points and it hangs for a while and then fails on that stale mount. The solution is to use stat -f rather than df. Signed-off-by: Kir Kolyshkin <kir@openvz.org>