www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [PATCH] sftp: Add support for fsync (OpenSSH extension).

Re: [PATCH] sftp: Add support for fsync (OpenSSH extension).

From: TJ Saunders <tj_at_castaglia.org>
Date: Tue, 9 Apr 2013 09:20:55 -0700 (PDT)

> In this case, it fails as follows:
>
> /* extract from the latest qemu ssh block driver code */
> r = libssh2_sftp_fsync(s->sftp_handle);
> /* ... */
> if (r == LIBSSH2_ERROR_SFTP_PROTOCOL &&
> libssh2_sftp_last_error(s->sftp) == LIBSSH2_FX_OP_UNSUPPORTED) {
> unsafe_flush_warning(s, "OpenSSH >= 6.3");
> return 0;
> }

What about SSH servers, other than OpenSSH, which might implement this
extension? The unsafe_flush_warning() message there, then, might be
misleading...

Cheers,
TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   No day in which something is learned is ever wasted.

     -TJ Saunders

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-04-09

the libssh2 team