Displaying 11 results from an estimated 11 matches for "bytes_request".
Did you mean:
bytes_requested
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, Oct 27, 2016 at 05:22:14PM -0700, Jeremy Allison via samba wrote:
>
> Looking around inside that source 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)
> *...
2016 Oct 28
2
Samba and BTRFS server-side copy
...samba
>> wrote:
>>> Looking around inside that source 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'...
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
.... That's broken.
If there's anyone on the Gnome gvfs team please let
me know and let's get this fixed.
Looking around inside that source 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 (#592...
2016 Oct 28
0
Samba and BTRFS server-side copy
...eremy Allison via samba
> wrote:
> >
> > Looking around inside that source 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 achiev...
2016 Nov 02
0
Samba and BTRFS server-side copy
...;> Looking around inside that source 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
> >>> s...
2016 Nov 02
2
Samba and BTRFS server-side copy
...nside that source 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 Windo...
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...(x)>(y)?(x):(y))
/***********************************************************************
*
@@ -210,7 +207,7 @@ FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(
}
else if (ret == 0) {
/* need more data */
- const size_t ogg_bytes_to_read = max(bytes_requested - *bytes, OGG_BYTES_CHUNK);
+ const size_t ogg_bytes_to_read = flac_max(bytes_requested - *bytes, OGG_BYTES_CHUNK);
char *oggbuf = ogg_sync_buffer(&aspect->sync_state, ogg_bytes_to_read);
if(0 == oggbuf) {
diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decode...
2007 Apr 02
0
4 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
.../*** SwfdecGtkLoader ***/
+
+G_DEFINE_TYPE (SwfdecGtkLoader, swfdec_gtk_loader, SWFDEC_TYPE_LOADER)
+
+static void swfdec_gtk_loader_start_read (SwfdecGtkLoader *gtk);
+static void
+swfdec_gtk_loader_read_cb (GnomeVFSAsyncHandle *handle, GnomeVFSResult result,
+ gpointer buffer, GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read,
+ gpointer loaderp)
+{
+ SwfdecGtkLoader *gtk = loaderp;
+ SwfdecLoader *loader = loaderp;
+
+ if (result == GNOME_VFS_ERROR_EOF) {
+ swfdec_loader_eof (loader);
+ swfdec_buffer_unref (gtk->current_buffer);
+ gtk->current_buffer = NULL;
+ gno...
2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...r, SWFDEC_TYPE_LOADER)
+G_DEFINE_TYPE (SwfdecGtkLoader, swfdec_gtk_loader, SWFDEC_TYPE_FILE_LOADER)
-static void swfdec_gtk_loader_start_read (SwfdecGtkLoader *gtk);
static void
-swfdec_gtk_loader_read_cb (GnomeVFSAsyncHandle *handle, GnomeVFSResult result,
- gpointer buffer, GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read,
- gpointer loaderp)
-{
- SwfdecGtkLoader *gtk = loaderp;
- SwfdecLoader *loader = loaderp;
-
- if (result == GNOME_VFS_ERROR_EOF) {
- swfdec_loader_eof (loader);
- swfdec_buffer_unref (gtk->current_buffer);
- gtk->current_buffer = NULL;
- gno...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
.../*** SwfdecGtkLoader ***/
+
+G_DEFINE_TYPE (SwfdecGtkLoader, swfdec_gtk_loader, SWFDEC_TYPE_LOADER)
+
+static void swfdec_gtk_loader_start_read (SwfdecGtkLoader *gtk);
+static void
+swfdec_gtk_loader_read_cb (GnomeVFSAsyncHandle *handle, GnomeVFSResult result,
+ gpointer buffer, GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read,
+ gpointer loaderp)
+{
+ SwfdecGtkLoader *gtk = loaderp;
+ SwfdecLoader *loader = loaderp;
+
+ if (result == GNOME_VFS_ERROR_EOF) {
+ swfdec_loader_eof (loader);
+ swfdec_buffer_unref (gtk->current_buffer);
+ gtk->current_buffer = NULL;
+ gno...