Displaying 9 results from an estimated 9 matches for "smbc_read".
Did you mean:
smb2_read
2016 Oct 28
3
Samba and BTRFS server-side copy
...urce code I also see:
>
> do_read (GVfsBackend *backend,
> GVfsJobRead *job,
> GVfsBackendHandle handle,
> char *buffer,
> gsize bytes_requested)
> {
> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
> ssize_t res;
> smbc_read_fn smbc_read;
>
> /* libsmbclient limits blocksize to (64*1024)-2 for Windows servers,
> * let's do the same here to achieve reasonable performance. (#588391)
> *
> * TODO: port to pull mechanism (#592468)
> */
> if (bytes_requested > 65534)
> byt...
2016 Oct 28
2
Samba and BTRFS server-side copy
...;> GVfsJobRead *job,
>>> GVfsBackendHandle handle,
>>> char *buffer,
>>> gsize bytes_requested)
>>> {
>>> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
>>> ssize_t res;
>>> smbc_read_fn smbc_read;
>>>
>>> /* libsmbclient limits blocksize to (64*1024)-2 for Windows
>>> servers,
>>> * let's do the same here to achieve reasonable performance.
>>> (#588391) *
>>> * TODO: port to pull mechanism (#592468)
>>&g...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, 27 Oct 2016 16:57:13 -0700, Jeremy Allison <jra at samba.org>
wrote :
> On Fri, Oct 28, 2016 at 01:42:35AM +0200, Saint Germain via samba
> wrote:
> > On Thu, 27 Oct 2016 16:27:05 -0700, Jeremy Allison <jra at samba.org>
> > > if you see any of these then it happened.
> >
> > Ok I understand how to check that it happened, but how can I make
2016 Oct 28
0
Samba and BTRFS server-side copy
...es:
static gboolean
copy_file (GVfsBackendSmb *backend,
GVfsJob *job,
const char *from_uri,
const char *to_uri)
{
SMBCFILE *from_file, *to_file;
char buffer[4096];
size_t buffer_size;
ssize_t res;
char *p;
gboolean succeeded;
smbc_open_fn smbc_open;
smbc_read_fn smbc_read;
smbc_write_fn smbc_write;
smbc_close_fn smbc_close;
from_file = NULL;
to_file = NULL;
succeeded = FALSE;
smbc_open = smbc_getFunctionOpen (backend->smb_context);
smbc_read = smbc_getFunctionRead (backend->smb_context);
smbc_write = smbc_getFunctionWrite (ba...
2016 Oct 28
0
Samba and BTRFS server-side copy
...(GVfsBackend *backend,
> > GVfsJobRead *job,
> > GVfsBackendHandle handle,
> > char *buffer,
> > gsize bytes_requested)
> > {
> > GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
> > ssize_t res;
> > smbc_read_fn smbc_read;
> >
> > /* libsmbclient limits blocksize to (64*1024)-2 for Windows
> > servers,
> > * let's do the same here to achieve reasonable performance.
> > (#588391) *
> > * TODO: port to pull mechanism (#592468)
> > */
> > if...
2016 Nov 02
0
Samba and BTRFS server-side copy
...gt; >>> GVfsBackendHandle handle,
> >>> char *buffer,
> >>> gsize bytes_requested)
> >>> {
> >>> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
> >>> ssize_t res;
> >>> smbc_read_fn smbc_read;
> >>>
> >>> /* libsmbclient limits blocksize to (64*1024)-2 for Windows
> >>> servers,
> >>> * let's do the same here to achieve reasonable performance.
> >>> (#588391) *
> >>> * TODO: port to pull...
2016 Nov 02
2
Samba and BTRFS server-side copy
...GVfsBackendHandle handle,
>>>>> char *buffer,
>>>>> gsize bytes_requested)
>>>>> {
>>>>> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
>>>>> ssize_t res;
>>>>> smbc_read_fn smbc_read;
>>>>>
>>>>> /* libsmbclient limits blocksize to (64*1024)-2 for Windows
>>>>> servers,
>>>>> * let's do the same here to achieve reasonable performance.
>>>>> (#588391) *
>>>>>...
2024 Oct 25
0
Could not find a suitable mechtype in NEG_TOKEN_INIT error in libsmbclient 4.19.4
...highest version
>of SMB and then negotiate down to the highest mutual available version,
>you appear to starting at the lowest version.
>
>Rowland
I dont think this is something I am controlling in any way through the
code. The client is very simple just doing smbc_init, smbc_opendir,
smbc_read etc.
Even the built-in smbget client in samba throws out with the same error.
Works in 4.10, but does not work in 4.19. I think there is some setting in
smb.conf which I am missing, but I cant figure out what.
#smbget --use-kerberos=off -d 10 "smb://
10.213.83.54/cifsshare/testing.dlpenc&q...
2007 May 10
2
programming libsmbclient
...argv[0]);
return 1;
}
smbc_init(get_auth_data_fn, debug);
printf("Open file %s\n", pSmbPath);
if ((fd = smbc_open(pSmbPath, O_RDONLY, 0)) < 0)
{
perror("smbc_open");
return 1;
}
do
{
ret = smbc_read(fd, buffer, sizeof(buffer));
savedErrno = errno;
if (ret > 0) fwrite(buffer, 1, ret, stdout);
} while (ret > 0);
smbc_close(fd);
if (ret < 0)
{
errno = savedErrno;
perror("read");
return 1;
}
return 0;
}
------...