summaryrefslogtreecommitdiff
path: root/daemon/gvfswritechannel.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement truncate support for output streamsRoss Lagerwall2013-12-051-1/+25
| | | | | | | | | | | | | | | | | | | | | Backends receive a TRUNCATE message which contains a size parameter. Truncation is signaled with a TRUNCATED message (which contains no other useful information). In more detail: Add a new dbus method, OpenForWriteFlags, which has a flags parameter to implement can_seek and can_truncate. These flags are used in GDaemonFileOutputStream. Compatability with old clients is maintained. Implement the can_truncate and truncate_fn GDaemonFileOutputStream methods. Add two new message types to the daemon socket protocol: G_VFS_DAEMON_SOCKET_PROTOCOL_REQUEST_TRUNCATE G_VFS_DAEMON_SOCKET_PROTOCOL_REPLY_TRUNCATED Add a new job type, GVfsJobTruncate. Add two new methods to GVfsBackend which backend classes can implement: truncate and try_truncate https://bugzilla.gnome.org/show_bug.cgi?id=573837
* 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
* Support query info on output streamsAlexander Larsson2009-02-271-0/+11
| | | | | | | | | | | | | | | | | | | | | | | 2009-02-27 Alexander Larsson <alexl@redhat.com> * client/gdaemonfileoutputstream.c: Support query info on output streams * daemon/Makefile.am: * daemon/gvfsbackend.h: * daemon/gvfsjobqueryinfowrite.[ch]: * daemon/gvfswritechannel.c: Add query info write support. * daemon/gvfsbackendtest.c: Implement writing to files in test backend. Implement query info on write * test/test-query-info-stream.c: Test g_file_output_stream_query_info(). svn path=/trunk/; revision=2260
* 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
* Add required includes for solaris Patch from Damien CarberyAlexander Larsson2007-11-131-0/+1
| | | | | | | | | | | | | | | | 2007-11-13 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: * daemon/gvfschannel.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjobcopy.c: * daemon/gvfsmonitor.c: * daemon/gvfswritechannel.c: Add required includes for solaris Patch from Damien Carbery svn path=/trunk/; revision=1022
* 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
* Implement etag sending on close in daemon streamAlexander Larsson2007-09-131-3/+4
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1185358218 +0200 svn path=/trunk/; revision=709
* 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
* Fixes to write channelAlexander Larsson2007-09-131-4/+4
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171881013 +0100 svn path=/trunk/; revision=361
* Initial work for daemon side write supportAlexander Larsson2007-09-131-0/+202
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171642429 +0100 svn path=/trunk/; revision=359