commit | 9a2d462e7bfba36597ccbd3774ba3bb1bd4c54d8 | [log] [tgz] |
---|---|---|
author | Richard W.M. Jones <rjones@redhat.com> | Tue Apr 09 15:30:54 2013 +0100 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Mon Apr 15 10:18:05 2013 +0200 |
tree | 99f84f93211231e0fc37909e943779a536189ef5 | |
parent | 0a12ec87a513b31eb3b6e035d30649e483322270 [diff] |
block: ssh: Use libssh2_sftp_fsync (if supported by libssh2) to flush to disk. libssh2_sftp_fsync is an extension to libssh2 to support fsync(2) over sftp, which is itself an extension of OpenSSH. If both libssh2 and the ssh daemon support it, this will allow bdrv_flush_to_disk to commit changes through to disk on the remote server. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>