vzctl chkpnt: fsync dump file

In case dump file is on shared storage like NFS in async mode,
it can be un-synced to disk (and shown with 0 size) which breaks migration.
Make sure we do fsync() before closing fd.

Reference: PSBM-11001
Reference: vzctl@769499
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed