summaryrefslogtreecommitdiff
path: root/daemon/gvfsreadchannel.c
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Bump maximum read channel buffer sizeBastien Nocera2017-01-031-3/+5
| | | | | | | | | | 256k isn't in the "stupid" buffer size for network reads, so bump the maximum size of the read buffer. See https://bugzilla.gnome.org/show_bug.cgi?id=773632 See https://bugzilla.gnome.org/show_bug.cgi?id=773823 https://bugzilla.gnome.org/show_bug.cgi?id=773826
* daemons: Tweak read sizesAlexander Larsson2013-04-051-7/+18
| | | | | | | | Make sure we never read more than one page unless requested on the first read. This helps for e.g. sniffing and gstreamer (which reads in 4k blocks with seeks inbetween). Also, further limit the max size request, because 512k seems very ridicoulus.
* Fix readahead behaviourAlexander Larsson2013-04-051-2/+15
| | | | | | | | | We were constantly adding extra readahead operations that were not really needed. A single readahead is necessary to get the read operations pipelined (see comment). Also, avoid readahead for the first read to handle random access i/o better. https://bugzilla.gnome.org/show_bug.cgi?id=697289
* Update the Address of the FSFFelix Möller2012-07-301-2/+2
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Port everything to use _with_operation() variants of unmount/eject methods - Add support for g_file_poll_mountable() - new job class: GVfsJobPollMountable - Pass mount operation for unmount/eject ops on GDaemonFile and GDaemonMount - receive in the appropriate GVfsJob classes - also pass unmount flags where it was missing - port all backends to use this - Teach GMountSource and GMountOperationDBus about the new GMountOperation::show-processes signal - also provide new API - g_mount_source_is_dummy() - e.g. when the client didn't passed NULL for the GMountOperation - g_mount_source_abort() - to send the ::abort signal to the client-side GMountOperation - make the client-side of GMountSource return ::reply with NOT_HANDLED when we do an abort - Refactor the mount operation handling in GProxyVolumeMonitor - Pass mount operation for unmount/ejects in GProxyVolumeMonitor - Pass the process id of the actual reader/writer in OpenForRead and OpenForWrite daemon methods - add some private API for making the FUSE client set the pid of the POSIX client (otherwise it looks like the FUSE client is blocking) and pass the right pid. This is because the FUSE client is basically impersonating the POSIX processes. - Make the process id mentioned above available in appropriate GVfsJob classes - GVfsJobOpenForRead - GVfsJobOpenForWrite - GVfsChannel - Provide API to get a list of all blocking clients, e.g. an array of GPid - g_vfs_daemon_get_blocking_processes() - Provide convenience API to easily doing the right thing on unmount; e.g. interact with the user about blocking processes - see the gphoto2 backend for example usage - g_vfs_backend_has_blocking_processes() - g_vfs_backend_unmount_with_operation() and g_vfs_backend_unmount_with_operation_finish() - Only the gphoto2 backend supports ::show-processes right now. Support for other backends will be added shortly. - Implement support for ::show-processes in the GDU volume monitor - right now we don't support "Unmount Anyway" since it requires ABI changes in libgdu.so - this will be changed as soon as there's a new gnome-disk-utility release
* Add (de)marshalling functions for GFileInfos.Alexander Larsson2009-02-271-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-27 Alexander Larsson <alexl@redhat.com> * common/Makefile.am: * common/gvfsfileinfo.[ch]: Add (de)marshalling functions for GFileInfos. * common/gvfsdaemonprotocol.h: Add protocol extensions for query info over streams * client/gdaemonfileinputstream.c: Support sync query_info. * daemon/Makefile.am: * daemon/gvfsjobqueryinforead.[ch]: * daemon/gvfsbackend.h: Added query info job and backend call for input streams * daemon/gvfsbackendtest.c: Implement query_info_on_read * daemon/gvfschannel.[ch]: Add g_vfs_channel_send_info * daemon/gvfsreadchannel.c: (read_channel_handle_request): Handle query info * test/Makefile.am: * test/test-query-info-stream.c: Add test for stream query info. svn path=/trunk/; revision=2257
* Use g_set_error_literal where appropriate. Bug #539167.Christian Persch2008-08-021-1/+1
| | | | svn path=/trunk/; revision=1847
* daemon/gvfsreadchannel.c, Fix format specifiers here.Kjartan Maraas2008-03-061-1/+1
| | | | | | | | | | 2008-03-07 Kjartan Maraas <kmaraas@gnome.org> * daemon/gvfsreadchannel.c, * daemon/gvfswritechannel.c: Fix format specifiers here. svn path=/trunk/; revision=1595
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-6/+1
| | | | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
* Remove SEEK_CUR from channel protocol. This doesn't work with readahead,Alexander Larsson2008-02-041-3/+0
| | | | | | | | | | | | | | | | | | 2008-02-04 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * daemon/gvfsreadchannel.c: * daemon/gvfswritechannel.c: Remove SEEK_CUR from channel protocol. This doesn't work with readahead, and can be converted to a SEEK_SET since we know the file position on the client side. svn path=/trunk/; revision=1222
* Init seq_nr to 1 so that seq_nr 0 is special (used for e.g. readahead ops)Alexander Larsson2008-02-041-0/+32
| | | | | | | | | | | | | | | | 2008-02-04 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: Init seq_nr to 1 so that seq_nr 0 is special (used for e.g. readahead ops) * daemon/gvfschannel.[ch]: * daemon/gvfsreadchannel.c: Implement readahead. svn path=/trunk/; revision=1221
* Request larger buffers than the client requested so for better networkAlexander Larsson2008-02-011-1/+30
| | | | | | | | | | | 2008-02-01 Alexander Larsson <alexl@redhat.com> * daemon/gvfsreadchannel.c: Request larger buffers than the client requested so for better network efficiency. (#512472) svn path=/trunk/; revision=1217
* Add copyright information to source files.Christian Kellner2007-11-011-0/+22
| | | | | | | | | | | | 2007-11-01 Christian Kellner <gicmo@gnome.org> * client/*.[ch]: * common/*.[ch]: * daemon/*.[ch]: * test/*.[ch]: Add copyright information to source files. svn path=/trunk/; revision=1007
* Update to API changes in gio.Sebastian Dröge2007-10-021-1/+0
| | | | | | | | | | | | | | | * client/gdaemonfile.c: (g_daemon_file_append_to), (g_daemon_file_create), (g_daemon_file_replace): * test/benchmark-gvfs-big-files.c: (create_file): * test/benchmark-gvfs-small-files.c: (create_file): Update to API changes in gio. * daemon/gvfschannel.c: * daemon/gvfsreadchannel.c: * daemon/gvfswritechannel.c: * daemon/main.c: Drop unecessary includes. svn path=/trunk/; revision=966
* Remove G_IO_ERROR_INTERNAL_ERROR and replace with FAILED or more specific errorsAlexander Larsson2007-09-131-1/+1
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174386775 +0100 svn path=/trunk/; revision=408
* Rename G_VFS_ERROR to G_IO_ERRORAlexander Larsson2007-09-131-2/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174383743 +0100 svn path=/trunk/; revision=405
* GInputStreamSocket -> GSocketInputStreamAlexander Larsson2007-09-131-2/+0
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1173784797 +0100 svn path=/trunk/; revision=385
* Initial work for daemon side write supportAlexander Larsson2007-09-131-1/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171642429 +0100 svn path=/trunk/; revision=359
* G_TYPE_VFS_xxx -> G_VFS_TYPE_xxxAlexander Larsson2007-09-131-2/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171636716 +0100 svn path=/trunk/; revision=356
* Move generic code from GVfsReadChannel to GVfsChannel base classAlexander Larsson2007-09-131-412/+82
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171634935 +0100 svn path=/trunk/; revision=354
* Revert "Move GVfsReadChannel into .c file, remove priv"Alexander Larsson2007-09-131-93/+100
| | | | | | | | This reverts commit 8c69e9308a565dfc6774a5c0bf351da363b11a0c. Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171622056 +0100 svn path=/trunk/; revision=353
* Move GVfsReadChannel into .c file, remove privAlexander Larsson2007-09-131-100/+93
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171621040 +0100 svn path=/trunk/; revision=350
* Split out daemon implementation into a module in its own subdirAlexander Larsson2007-09-131-2/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1169052241 +0100 svn path=/trunk/; revision=251
* Initial work on the new way to track mountpoints.Alexander Larsson2007-09-131-32/+14
| | | | | | | | Daemon side only. Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165492556 +0100 svn path=/trunk/; revision=219
* Rename GVfsReadStream to GVfsReadChannelAlexander Larsson2007-09-131-0/+552
Make GVfsJobDBus class to share code Make GVfsJob backend be construct property Implement daemon-side support for dbus call cancellation Finish dbus call cancellation client-side Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165257484 +0100 svn path=/trunk/; revision=217