Displaying 3 results from an estimated 3 matches for "seek64".
Did you mean:
lseek64
2019 Mar 06
0
[PATCH nbdkit] Add ssh plugin using libssh.
...sftp_fstat (h->file);
+ r = attrs->size;
+ sftp_attributes_free (attrs);
+
+ return r;
+}
+
+/* Read data from the remote server. */
+static int
+ssh_pread (void *handle, void *buf, uint32_t count, uint64_t offset)
+{
+ struct ssh_handle *h = handle;
+ int r;
+ ssize_t rs;
+
+ r = sftp_seek64 (h->file, offset);
+ if (r != SSH_OK) {
+ nbdkit_error ("seek64 failed: %s", ssh_get_error (h->session));
+ return -1;
+ }
+
+ while (count > 0) {
+ rs = sftp_read (h->file, buf, count);
+ if (rs < 0) {
+ nbdkit_error ("read failed: %s (%zd)",...
2019 Mar 06
2
[PATCH nbdkit] Add ssh plugin using libssh.
This adds a simple plugin using libssh (not libssh2). The intended
use for this is with virt-v2v when sourcing guests from VMware over
SSH.
We've had several years of problems getting our libssh-based driver
into qemu. By putting it into nbdkit instead we can bypass that.
However this also lets us combine ssh access with filters, in
particular the recently written ‘rate’ filter.
Rich.
2016 Aug 01
4
OpenSSH 7.3p1 can't be build on Solaris 10
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
configure:17280: result: no
configure:17300: checking for mblen
configure:17356: gcc -o conftest -O3 -m64 -mtune=native -pipe -Wall
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset