summaryrefslogtreecommitdiff
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Cleanups and fixes for compiler warningsKjartan Maraas2011-03-172-5/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641856
* Fix stringv transfer over dbusTomas Bzatek2010-09-271-1/+2
| | | | | | | The wrong iterator passed in caused some items to be silently dropped plus it led to string dup of wrong pointer. See bug 614544 for reference.
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-278-10/+10
| | | | This makes gvfs build with recent glib again, see bug #619537
* Skip malformed data from the backend sideTomas Bzatek2010-04-261-0/+1
| | | | | | | Sometimes we may get unexpected data from dbus which was leading to an endless loop. See bug 614544 for reference.
* Add "default location" support for mountsChristian Kellner2009-11-262-2/+13
| | | | | | | | | | | The "default location" of the given mount is a path that reflects the main entry point for the user (e.g. the home directory, or the root of the volume). Backends can use g_vfs_backend_set_default_location () to set the default location (before registering the mount). https://bugzilla.gnome.org/show_bug.cgi?id=561998
* [common] Loading icon and title on Blu-ray video discsBastien Nocera2009-11-093-3/+264
| | | | | | | | | Using the BDMV/META/DL/bdmt_eng.xml file on BDMV discs, we can load better names and icons for the disc. Adds expat requirement to the common library if it is found. https://bugzilla.gnome.org/show_bug.cgi?id=600887
* Fix creating mount_spec from stringTomas Bzatek2009-10-081-1/+1
| | | | Don't consume the ending character.
* Fix a ref leakMatthias Clasen2009-09-111-0/+1
| | | | This leak was pointed out by clang, and reported in bug 594832.
* Avoid deadlock when pulling resolved dns-sd record from cacheTomas Bzatek2009-08-181-2/+11
| | | | | | | | | | When the host has already been resolved and is present in cache, it's returned immediately. But we always started a mainloop resulting in endless waiting for an event which had been received before that. This applies for the sync call. This is just a workaround, the sync code should be ported over avahi. See bug 555436 (comments 30-32) for details.
* Canonicalize mount prefix to prevent mountspec matching issuesTomas Bzatek2009-08-181-2/+2
| | | | | | | This prevents mismatches during mount spec comparation, e.g. with trailing slash in mount_prefix ("/subdir" vs. "/subdir/"). See bug 590730 for details.
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-084-4/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Implement a dbus based metadata get callAlexander Larsson2009-06-251-0/+1
|
* Remove spew from gmountspec changesAlexander Larsson2009-06-251-1/+0
|
* Make g_mount_spec_to_string generate a "nicer" stringAlexander Larsson2009-06-251-26/+38
| | | | | We'll be showing this of publically as the id of metadata databases, so it better be somewhat shorter and nicer.
* Fix up GFileInfo marshallingAlexander Larsson2009-06-251-3/+6
|
* (de)marshal the attribute status in GFileInfoAlexander Larsson2009-06-253-7/+25
|
* Support (de)marshalling of new GFileInfo keys (invalid & stringv)Alexander Larsson2009-06-252-9/+99
|
* Add gvfsd-metadata update daemonAlexander Larsson2009-06-231-0/+8
| | | | | | | | | This daemon singleton handles updates to metadata stores. All clients that wishes to write metadata should talk to it via dbus. This way all writes are serialized to avoid data loss on concurrent writes.
* Bug 585591 – Starting/stopping drivesDavid Zeuthen2009-06-173-15/+5
| | | | | | | | | 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.
* Use new race-free cancellable signal connect APIs (#572844)Alexander Larsson2009-05-151-5/+4
|
* Bug 575728 – crash in Open Folder: mountin a crypto volumeAlexander Larsson2009-03-183-1/+49
| | | | | | | | | | | | | | | | | | | | 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
* Updated .xdg-volume-info format as per bug 551403: + Group name is "VolumeAlexander Larsson2009-03-051-11/+36
| | | | | | | | | | | | | 2009-03-05 Alexander Larsson <alexl@redhat.com> * common/gvfsmountinfo.c: Updated .xdg-volume-info format as per bug 551403: + Group name is "Volume Info" + Icon is not translated + support IconFile key svn path=/trunk/; revision=2291
* Bug 564003 – gvfs Cygwin patchesAlexander Larsson2009-03-051-0/+3
| | | | | | | | | | | | | 2009-03-05 Alexander Larsson <alexl@redhat.com> Bug 564003 – gvfs Cygwin patches * common/Makefile.am: Add -no-undefined required for cygwin build svn path=/trunk/; revision=2289
* Bug 551403 – Support Reading Volume Icon/Name Information fromDavid Zeuthen2009-03-023-0/+765
| | | | | | | | | | | | | | | | | 2009-03-02 David Zeuthen <davidz@redhat.com> Bug 551403 – Support Reading Volume Icon/Name Information from .xdg-volume-info * common/Makefile.am: * common/gvfsmountinfo.[ch]: Move autorun file detection to common library. Also add routines for detecting .xdg-volume-info files. * monitor/hal/ghalmount.c: Use g_mount_info*() functions for detecting autorun and .xdg-volume-info files. svn path=/trunk/; revision=2276
* Bug 569712 – Write comments for translators!Alexander Larsson2009-03-021-9/+9
| | | | | | | | | | | | | 2009-03-02 Alexander Larsson <alexl@redhat.com> Bug 569712 – Write comments for translators! * common/gvfsdnssdresolver.c (service_resolver_timed_out): Fix position of translator comments. svn path=/trunk/; revision=2271
* Bug 569712 – Write comments for translators!Alexander Larsson2009-03-021-0/+16
| | | | | | | | | | | | | | 2009-03-02 Alexander Larsson <alexl@redhat.com> Bug 569712 – Write comments for translators! * common/gvfsdnssdresolver.c: Add some translator comments. Patch from David Planella svn path=/trunk/; revision=2265
* Remove unused functions. Pointed out by Tommi Rantala.Alexander Larsson2009-03-022-63/+0
| | | | | | | | | | | 2009-03-02 Alexander Larsson <alexl@redhat.com> * common/gdbusutils.[ch]: Remove unused functions. Pointed out by Tommi Rantala. svn path=/trunk/; revision=2262
* Add (de)marshalling functions for GFileInfos.Alexander Larsson2009-02-274-0/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Dup string to avoid double free later.Alexander Larsson2009-01-291-1/+1
| | | | | | | | | | | | 2009-01-29 Alexander Larsson <alexl@redhat.com> * common/gvfsicon.c: (g_vfs_icon_to_tokens): Dup string to avoid double free later. svn path=/trunk/; revision=2186
* use glib where it is requiredSebastien Bacher2009-01-201-1/+2
| | | | svn path=/trunk/; revision=2174
* Bug 562955 – parallel build doesn't workRyan Lortie2008-12-201-1/+1
| | | | | | | | | | | | 2008-12-16 Ryan Lortie <desrt@desrt.ca> Bug 562955 – parallel build doesn't work * common/Makefile.am: use non-absolute path for libgvfscommon.la so that automake can see the dependency svn path=/trunk/; revision=2145
* Make mounts/backends have a GIcon not a icon nameAlexander Larsson2008-12-012-6/+20
| | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * common/gmounttracker.[ch]: * daemon/gvfsbackend.[ch]: Make mounts/backends have a GIcon not a icon name * daemon/gvfsbackendsftp.c: Support /etc/favicon.png * daemon/gvfsbackendsmbbrowse.c: Simplify some code with the new GIcon support Patch from David Zeuthen (#557540) svn path=/trunk/; revision=2113
* Added. Added. Added. Added.Alexander Larsson2008-12-015-0/+1723
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * common/Makefile.am: * common/gvfsdnssdresolver.c: Added. * common/gvfsdnssdresolver.h: Added. * common/gvfsdnssdutils.c: Added. * common/gvfsdnssdutils.h: Added. * daemon/Makefile.am: * daemon/dav+sd.mount.in: Added. * daemon/dav.mount.in: * daemon/gvfsbackenddav.c: * daemon/gvfsbackenddnssd.c: * daemon/gvfsbackendnetwork.c: For references to dns-sd dav services, use a dav+sd: uri, since this is stable over e.g. port changes and as such work better in e.g. bookmarks. Patch from David Zeuthen (#555436) svn path=/trunk/; revision=2112
* Patch from David ZeuthenAlexander Larsson2008-10-216-3/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-21 Alexander Larsson <alexl@redhat.com> Patch from David Zeuthen * common/Makefile.am: * common/gvfsicon.[ch]: Added GVfsIcon object for GVfs backend specific icons. * common/gmountspec.[ch]: Make sure to/from string works correctly to roundtrip GMountSpec:s Make GMountSpec a boxed type * common/gvfsdaemonprotocol.h: Add OpenIconForRead operation * client/Makefile.am: * client/gvfsiconloadable.[ch]: In gvfs client side, implement GLoadableIcon for GVfsIcon type. * client/gdaemonvfs.c: Make sure that we add the GLoadableIcon interface for GVfsIcon on load * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsjobopeniconforread.[ch]: Add new job type for OpenIconForRead op * daemon/gvfsbackendgphoto2.c: Implement OpenIconForRead for icon previews. svn path=/trunk/; revision=2070
* Require glib 2.19.1 for GIcon serialization supportAlexander Larsson2008-10-211-88/+27
| | | | | | | | | | | | | | | | | | | | | 2008-10-21 Alexander Larsson <alexl@redhat.com> * configure.ac: Require glib 2.19.1 for GIcon serialization support * common/gvfsdaemonprotocol.c: Use g_icon_to_string & co instead of home-brewed serialization * monitor/proxy/gproxydrive.c: * monitor/proxy/gproxymount.c: * monitor/proxy/gproxyvolume.c: * monitor/proxy/gproxyvolumemonitor.c: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/gvfsproxyvolumemonitordaemon.c: Use g_icon_to_string & co instead of home-brewed serialization svn path=/trunk/; revision=2069
* Fix uninitialized memory read.Alexander Larsson2008-10-171-0/+1
| | | | | | | | | | 2008-10-17 Alexander Larsson <alexl@redhat.com> * common/gdbusutils.c (append_escaped_name): Fix uninitialized memory read. svn path=/trunk/; revision=2057
* Reverse map fuse paths to gvfs uris in g_file_new_for_path().Alexander Larsson2008-09-261-0/+1
| | | | | | | | | | | | | | 2008-09-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * common/gvfsdaemonprotocol.h: * daemon/mount.c: Reverse map fuse paths to gvfs uris in g_file_new_for_path(). svn path=/trunk/; revision=2031
* Free returned strv with g_strfreev, not dbus_free_string_array. (#529596)Alexander Larsson2008-09-251-1/+1
| | | | | | | | | | | | 2008-09-25 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.c: (_g_dbus_get_file_attribute): Free returned strv with g_strfreev, not dbus_free_string_array. (#529596) svn path=/trunk/; revision=2030
* Only call the IsSupported dbus call when the class is actually neededAlexander Larsson2008-09-233-57/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-09-23 Alexander Larsson <alexl@redhat.com> * monitor/proxy/gproxyvolumemonitor.[ch]: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/remote-volume-monitor-module.c: Only call the IsSupported dbus call when the class is actually needed instead of on gio init. Don't integrate internal session bus with mainloop during is_support code, as that is not necessary yet, and it caused problem if done in a thread. This fixes the trash crash issue in bug #547568. 2008-09-23 Alexander Larsson <alexl@redhat.com> * client/Makefile.am: * common/Makefile.am: * common/gmountsource.c: * common/gmounttracker.c: * monitor/gphoto2/Makefile.am: * monitor/hal/Makefile.am: * monitor/proxy/Makefile.am: Link all modules against the installed libgvfscommon instead of duplicating the statically linked one. This is safe wrt namespace conflicts, because the modules are opened RTLD_LOCAL so the dependencies will not pollute the global namespace. * client/gdaemonvfs.c: Make the gvfsdbus module persistant. This means we will never unload it, and thus not unload libgvfscommon which could be problematic. This is not a huge problem, as: + The gio modules will not be loaded anyway unless you use gio + The gvfsdbus module will be persistent anyway as soon as the app references the GVfs object, which likely all gio apps do + The module load order doesn't matter wrt unload order, because all gio modules are loaded before any one is unloaded. svn path=/trunk/; revision=2021
* Add Push and Pull. Remove Upload. (#550100)Christian Kellner2008-09-011-1/+2
| | | | svn path=/trunk/; revision=1922
* Plug a tiny memory leakMatthias Clasen2008-08-301-0/+1
| | | | svn path=/trunk/; revision=1919
* Plug some leaks on error pathsMatthias Clasen2008-08-252-0/+3
| | | | svn path=/trunk/; revision=1907
* Use g_set_error_literal where appropriate. Bug #539167.Christian Persch2008-08-022-7/+7
| | | | svn path=/trunk/; revision=1847
* Add x-content/* support to daemon mounts. Right now a backend can only setDavid Zeuthen2008-07-292-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-29 David Zeuthen <davidz@redhat.com> * client/gdaemonmount.c: * common/gmounttracker.c: * common/gmounttracker.h: * daemon/gvfsbackend.c: * daemon/gvfsbackend.h: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendgphoto2.c: * daemon/mount.c: Add x-content/* support to daemon mounts. Right now a backend can only set the x-content/* type ahead of time. We might want to add support dynamically obtaining it too (e.g. support force_rescan). * monitor/hal/ghalmount.c: * monitor/hal/ghalvolume.c: * monitor/hal/ghalvolumemonitor.c: * monitor/hal/hal-utils.c: * monitor/hal/hal-utils.h: Add x-content/* support to the HAL volume monitor. * monitor/proxy/gproxymount.c: * monitor/proxy/gproxymount.h: * monitor/proxy/gproxyvolumemonitor.c: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/gvfsproxyvolumemonitordaemon.c: Add x-content/* support to proxy volume monitor. Also fix a number of bugs the initial implementation had. * programs/gvfs-mount.c: Print out x-content-types. svn path=/trunk/; revision=1845
* Don't allow setting a null parameter in mountspec (coming from broken backend)Tomas Bzatek2008-05-271-0/+3
| | | | svn path=/trunk/; revision=1788
* Only free lock if it is non-NULL. Pointed out by Denis Leroy.Matthias Clasen2008-04-141-1/+2
| | | | | | | | | 2008-04-14 Matthias Clasen <mclasen@redhat.com> * common/gmounttracker.c (g_mount_tracker_finalize): Only free lock if it is non-NULL. Pointed out by Denis Leroy. svn path=/trunk/; revision=1733
* OpenBSB portability fixes. Patch from Jasper Lievisse AdriaanseAlexander Larsson2008-03-111-8/+11
| | | | | | | | | | | | | 2008-03-11 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: * configure.ac: OpenBSB portability fixes. Patch from Jasper Lievisse Adriaanse <jasper@humppa.nl> svn path=/trunk/; revision=1645
* Include <sys/types.h> also (#520307)Alexander Larsson2008-03-061-0/+3
| | | | | | | | | | | 2008-03-06 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: Include <sys/types.h> also (#520307) svn path=/trunk/; revision=1587
* Include sys/uio.h if availible (#520307)Alexander Larsson2008-03-061-0/+3
| | | | | | | | | | | | 2008-03-06 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: * configure.ac: Include sys/uio.h if availible (#520307) svn path=/trunk/; revision=1580
* Always set password to non-NULL, but keep user/domain as NULL if notAlexander Larsson2008-03-051-3/+4
| | | | | | | | | | | | | 2008-03-05 Alexander Larsson <alexl@redhat.com> * common/gmountsource.c: (ask_password_reply): Always set password to non-NULL, but keep user/domain as NULL if not specified by user. Fixes #520317 (smb auth crash) svn path=/trunk/; revision=1550