summaryrefslogtreecommitdiff
path: root/common/gmountoperationdbus.c
Commit message (Collapse)AuthorAgeFilesLines
* mount-op: adapt to guint64->gint64 API changeCosimo Cecchi2012-08-211-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682284
* gdbus: Remove debug printsTomas Bzatek2012-07-311-10/+0
|
* gdbus: Use casting macros where possibleTomas Bzatek2012-07-311-4/+4
|
* gdbus: gmountoperationdbus.c: Move referenced objects aroundTomas Bzatek2012-07-311-24/+26
| | | | | Reorganize saved references for used objects, getting rid of some FIXMEs.
* gdbus: Core daemon and client portTomas Bzatek2012-07-311-320/+186
| | | | | | | | | | | Port of most of the gvfs core, few bits still missing. Lot of debug prints around, will be removed in further commits. Same amount of TODOs and FIXMEs. Notes: * kill serials? * get rid of mainloops where applicable (copy/move progress callback, enumerator) * fix keyring integration * use gdbus builtin fd passing within gvfsdaemon.c, kill the extra_fd stuff
* 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>
* common: add support show-unmount-progress signal to GMountOperationDBusCosimo Cecchi2012-07-131-0/+49
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676111
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-271-1/+1
| | | | This makes gvfs build with recent glib again, see bug #619537
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-081-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Bug 585591 – Starting/stopping drivesDavid Zeuthen2009-06-171-11/+1
| | | | | | | | | This is the GVfs implementation for the new GIO API for starting/stopping drives. See http://bugzilla.gnome.org/show_bug.cgi?id=585591 for details.
* Bug 575728 – crash in Open Folder: mountin a crypto volumeAlexander Larsson2009-03-181-0/+13
| | | | | | | | | | | | | | | | | | | | 2009-03-18 Alexander Larsson <alexl@redhat.com> Bug 575728 – crash in Open Folder: mountin a crypto volume * common/gvfsdaemonprotocol.h: * common/gmountoperationdbus.c: Handle the new "aborted" signal * common/gmountsource.c: Fix argument order in g_mount_source_ask_password_finish call. stop signal emissions in ask_password and ask_question handlers to avoid the default handler sending a not implemented error. Handle the new "aborted" signal. svn path=/trunk/; revision=2342
* Plug some leaks on error pathsMatthias Clasen2008-08-251-0/+2
| | | | svn path=/trunk/; revision=1907
* Implement unmount_mountable and eject_mountable on client side.Alexander Larsson2008-01-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-11 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * common/gvfsdaemonprotocol.h: Implement unmount_mountable and eject_mountable on client side. * common/gmountoperationdbus.c: Fix warnings * daemon/gvfsbackend.[ch]: * daemon/gvfsjobunmountmountable.[ch]: Add unmount_mountable and eject_mountable in daemon. * daemon/gvfsbackendcomputer.c: Implement unmount_mountable and eject_mountable * daemon/gvfsbackendlocaltest.c: Update to latest API * daemon/gvfsbackendsftp.c: Fix indentation * daemon/gvfsjobunmount.c: Always allow unmount if unmount is not implemented. svn path=/trunk/; revision=1093
* Add g_mount_source_get_operation() that lets you handle a remoteAlexander Larsson2008-01-091-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-09 Alexander Larsson <alexl@redhat.com> * common/gmountsource.[ch]: Add g_mount_source_get_operation() that lets you handle a remote GMountSource as if it was a GMountOperation. * common/gmountoperationdbus.c: * programs/gvfs-mount.c: Update to new GMountOperation APIs * client/gdaemonfile.c: * daemon/gvfsjobmountmountable.[ch]: Also let you return target by uri, as not all targets are from gvfs. * daemon/gvfsbackendcomputer.c: Initial cut at mount_mountable svn path=/trunk/; revision=1085
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * client/gdaemondirectorymonitor.c: * client/gdaemondirectorymonitor.h: * client/gdaemonfile.c: * client/gdaemonfile.h: * client/gdaemonfileenumerator.c: * client/gdaemonfileenumerator.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileinputstream.h: * client/gdaemonfilemonitor.c: * client/gdaemonfilemonitor.h: * client/gdaemonfileoutputstream.c: * client/gdaemonfileoutputstream.h: * client/gdaemonmount.c: * client/gdaemonmount.h: * client/gdaemonvfs.c: * client/gdaemonvfs.h: * client/gdaemonvolumemonitor.h: * client/gvfsdaemondbus.c: * client/gvfsdaemondbus.h: * client/gvfsfusedaemon.c: * client/gvfsurimapper.h: * client/smburi.c: * common/gdbusutils.c: * common/gdbusutils.h: * common/gmountoperationdbus.c: * common/gmountoperationdbus.h: * common/gmountsource.c: * common/gmountsource.h: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * common/gvfsdaemonprotocol.h: * daemon/gvfsbackend.h: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/gvfsjob.h: * daemon/gvfsjobcopy.h: * daemon/gvfsjobcreatemonitor.h: * daemon/gvfsjobdelete.h: * daemon/gvfsjobenumerate.h: * daemon/gvfsjobmakedirectory.h: * daemon/gvfsjobmakesymlink.h: * daemon/gvfsjobmount.h: * daemon/gvfsjobmountmountable.h: * daemon/gvfsjobmove.h: * daemon/gvfsjobqueryattributes.h: * daemon/gvfsjobqueryfsinfo.h: * daemon/gvfsjobqueryinfo.h: * daemon/gvfsjobsetattribute.h: * daemon/gvfsjobsetdisplayname.h: * daemon/gvfsjobtrash.h: * daemon/gvfsjobunmount.h: * daemon/gvfsmonitor.h: * daemon/mount.c: * daemon/mount.h: * programs/gvfs-cat.c: * programs/gvfs-copy.c: * programs/gvfs-info.c: * programs/gvfs-ls.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: * programs/gvfs-mount.c: * programs/gvfs-move.c: * programs/gvfs-rm.c: * programs/gvfs-save.c: * programs/gvfs-trash.c: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: * test/benchmark-posix-big-files.c: * test/benchmark-posix-small-files.c: Only use <gio/gio.h> include svn path=/trunk/; revision=1039
* Remove use of old giotypes.h headerAlexander Larsson2007-11-061-1/+2
| | | | | | | | | | | | | | 2007-11-06 Alexander Larsson <alexl@redhat.com> * common/gmountoperationdbus.c: * common/gmounttracker.c: * daemon/gvfsbackend.h: * daemon/gvfschannel.h: Remove use of old giotypes.h header svn path=/trunk/; revision=1010
* 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
* Pass in DBusConnection to use instead of using default oneAlexander Larsson2007-09-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | 2007-09-25 Alexander Larsson <alexl@redhat.com> * common/gmountoperationdbus.[ch]: * common/gmounttracker.[ch]: Pass in DBusConnection to use instead of using default one * client/gdaemonfile.c: * client/gdaemonvfs.[ch]: * client/gvfsdaemondbus.c: Use private dbus connection even for async calls, since the mainloop integration is conflicting with dbus-glib. This is a temporary measure until this is solved in a better way. * client/gdaemonvolumemonitor.c: * client/gvfsfusedaemon.c: * daemon/gvfsbackendsmbbrowse.c: Update to the API changes svn path=/trunk/; revision=959
* Actually send GMountOperation to mount_mountable daemon callAlexander Larsson2007-09-131-0/+3
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178805011 +0200 svn path=/trunk/; revision=547
* Add defines for GMountOperation dbus opsAlexander Larsson2007-09-131-2/+2
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178705331 +0200 svn path=/trunk/; revision=532
* Update gvfs mounting to the new APIsAlexander Larsson2007-09-131-83/+2
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178632314 +0200 svn path=/trunk/; revision=525
* 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 gvfstypes.h to giotypes.hAlexander Larsson2007-09-131-1/+1
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174384072 +0100 svn path=/trunk/; revision=406
* 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
* Initial work on allowing manual mountsAlexander Larsson2007-09-131-111/+78
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171469241 +0100 svn path=/trunk/; revision=347
* Move mounting into a GVfsJobAlexander Larsson2007-09-131-34/+15
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171041742 +0100 svn path=/trunk/; revision=315
* Add g_mount_operation_dbus_fail_at_idleAlexander Larsson2007-09-131-0/+35
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170844391 +0100 svn path=/trunk/; revision=298
* More work on mounting. Automount of smb now works (test).Alexander Larsson2007-09-131-2/+28
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170415025 +0100 svn path=/trunk/; revision=296
* Unregister dbus object path at finalizeAlexander Larsson2007-09-131-0/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170343871 +0100 svn path=/trunk/; revision=295
* Add dbus-based source for GMountOperationAlexander Larsson2007-09-131-0/+372
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170341972 +0100 svn path=/trunk/; revision=293