summaryrefslogtreecommitdiff
path: root/client/gdaemonvolumemonitor.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not sent user invisible mounts if not neededOndrej Holy2017-06-061-16/+10
| | | | | | | | | | | g_volume_monitor_get() might be really slow if there is too many mounts, because the list of the mounts is send over D-Bus. It can simply happen due to user invisible mounts, e.g. http. User invisible mounts are ignored by the volume monitor, so it is useless to send them over D-Bus. Improve the D-Bus API and don't send the user invisible mounts if it is not needed. https://bugzilla.gnome.org/show_bug.cgi?id=775600
* Use g_list_free_full() where applicableTomas Bzatek2013-01-171-2/+1
|
* 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>
* Cleanups and fixes for compiler warningsKjartan Maraas2011-03-171-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641856
* Use the new support for shadow mounts instead ofAlexander Larsson2008-12-011-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * client/gdaemonvolumemonitor.c: * monitor/proxy/Makefile.am: * monitor/proxy/gproxydrive.c: * monitor/proxy/gproxymount.c: * monitor/proxy/gproxyvolume.c: * monitor/proxy/gproxyvolume.h: * monitor/proxy/gproxyvolumemonitor.c: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/remote-volume-monitor-module.c: * monitor/proxy/gproxyshadowmount.[ch]: Use the new support for shadow mounts instead of g_volume_monitor_adopt_orphan_mount Patch from David Zeuthen (#555332) * programs/gvfs-mount.c: Add support to monitor volume monitor events svn path=/trunk/; revision=2119
* get rid of modelines The modelines were inconsistent and caused issuesBenjamin Otte2008-04-221-1/+0
| | | | | | | | | * */*.[ch]: get rid of modelines The modelines were inconsistent and caused issues when used in different editors. svn path=/trunk/; revision=1756
* Properly lock around volume monitors and volume monitor objects. Emit allAlexander Larsson2008-03-041-24/+31
| | | | | | | | | | | | | | | | | | 2008-03-04 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * client/gdaemonvolumemonitor.c: * hal/ghaldrive.c: * hal/ghalmount.c: * hal/ghalvolume.c: * hal/ghalvolumemonitor.[ch]: Properly lock around volume monitors and volume monitor objects. Emit all events in idles to avoid reentrancy issues. Fixed deadlock in #519599. svn path=/trunk/; revision=1522
* Emit signals outside of the lock to avoid deadlocks (#519250)Alexander Larsson2008-02-281-8/+21
| | | | | | | | | | | | | 2008-02-28 Alexander Larsson <alexl@redhat.com> * client/gdaemonvolumemonitor.c: (mount_added): (mount_removed): Emit signals outside of the lock to avoid deadlocks (#519250) svn path=/trunk/; revision=1424
* Use standard lock instead of recursive lock.Alexander Larsson2008-02-261-11/+12
| | | | | | | | | | 2008-02-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonvolumemonitor.c: Use standard lock instead of recursive lock. svn path=/trunk/; revision=1383
* Prefer to return a GDaemonMount from an existing GDaemonVolumeMonitorDavid Zeuthen2008-02-251-3/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-24 David Zeuthen <davidz@redhat.com> * client/gdaemonfile.c: * client/gdaemonvolumemonitor.c: * client/gdaemonvolumemonitor.h: Prefer to return a GDaemonMount from an existing GDaemonVolumeMonitor rather than rolling our own for GDaemonFile's g_file_find_enclosing_mount() implementation. This is to ensure that g_mount_get_volume() will work properly with mounts that are adopted by GVolume objects from other volume monitors. * configure.ac: Check for libgphoto2 * daemon/Makefile.am: * daemon/gvfsbackendcdda.c: Use HAL to detect when the disc is removed and then forcibly unmount the mount. Report size of disc. Hint the file manager to preview files. * hal/ghaldrive.c: * hal/ghalmount.c: * hal/ghalvolume.c: * hal/ghalvolumemonitor.c: * hal/ghalvolumemonitor.h: * hal/hal-pool.c: Ensure that audio and blank CD's are displayed (#514139). Read info.desktop.[icon|name] properties from hal and use these if found. Use proper icon for audio players and make the gphoto2 detection support it as well. Also check for subsystem when filtering on hal capabilities. Also revert the commit to ignore NFS mounts as gio will now only report an user visible mount if it's in /media or $HOME. Make LUKS encrypted volumes work. * daemon/Makefile.am: * daemon/gphoto2.mount.in: * daemon/gvfsbackendgphoto2.c: Land the gphoto2 backend. * programs/Makefile.am: * programs/gvfs-ls.c: Make the --hidden option work. Default to short listing and add a --long option. Implement new options --show-completions and --show-mounts that can be used for shell completions. * programs/gvfs-tree.c: New program * programs/gvfs-bash-completion.sh: Bash completion for gvfs; uses the new --show-completions and --show-mounts options in gvfs-ls. svn path=/trunk/; revision=1359
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-1/+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
* Don't spew warnings when hidden mounts are unmounted.Alexander Larsson2008-02-051-1/+2
| | | | | | | | | | | 2008-02-05 Alexander Larsson <alexl@redhat.com> * client/gdaemonvolumemonitor.c (mount_removed): Don't spew warnings when hidden mounts are unmounted. svn path=/trunk/; revision=1230
* Fix typo G_DAEMON_FILE -> G_IS_DAEMON_FILEAlexander Larsson2008-01-281-0/+4
| | | | | | | | | | | | | | | | | | | 2008-01-28 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c (g_daemon_file_move): Fix typo G_DAEMON_FILE -> G_IS_DAEMON_FILE * configure.ac: Require glib >= 2.15.4 * client/gdaemonvfs.c: * client/gdaemonvolumemonitor.c: * hal/ghalvolumemonitor.c: Register with the new extension points API. svn path=/trunk/; revision=1189
* Remove spew Update for new APIs Don't use GDaemonVolumeMonitor if notAlexander Larsson2007-12-191-3/+23
| | | | | | | | | | | | | | | | | | 2007-12-19 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * client/gdaemonvolumemonitor.c: * hal/ghalvolumemonitor.c: * hal/hal-module.c: Remove spew Update for new APIs Don't use GDaemonVolumeMonitor if not using GDaemonVfs. * hal/hal-pool.c: Close custom dbus connection before unrefing svn path=/trunk/; revision=1053
* Add the cdda:// backend for Compact Disc Digital Audio discs.David Zeuthen2007-12-191-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-19 David Zeuthen <davidz@redhat.com> Add the cdda:// backend for Compact Disc Digital Audio discs. Allow a backend to specify the fuse name directly instead of using the display name Make GDaemonVolumeMonitor and GDaemonMount use the new adopt_orphan_mount() function on GVolumeMonitor in gio. Also, since a GMount now can be associated with a GVolume, implement eject(). Add a new gvfs-less program. Make gvfs-mount capable of unmounting as well. HAL backend changes: attempt to unmount all mounts from enclosing volumes and fail the ejection if one of the unmount operations fails. Use new adopt_orphan_mount() from gio to adopt cdda:// volumes for audio discs. Emit the 'eject-button' signal on GDrive. Various other fixes. * client/gdaemonfile.c: (g_daemon_file_find_enclosing_mount): * client/gdaemonmount.c: (g_daemon_mount_finalize), (g_daemon_mount_new), (g_daemon_mount_get_volume), (g_daemon_mount_get_drive), (g_daemon_mount_can_eject), (foreign_volume_removed), (g_daemon_mount_set_foreign_volume), (eject_wrapper_callback), (g_daemon_mount_eject), (g_daemon_mount_eject_finish), (g_daemon_mount_mount_iface_init): * client/gdaemonmount.h: * client/gdaemonvolumemonitor.c: (mount_added), (mount_removed), (g_daemon_volume_monitor_init): * client/gvfsfusedaemon.c: (file_handle_close_stream), (free_file_handle_for_path), (mount_record_new): * common/gmounttracker.c: (g_mount_info_dup), (g_mount_info_unref), (g_mount_info_from_dbus): * common/gmounttracker.h: * configure.ac: * daemon/Makefile.am: * daemon/gvfsbackend.c: (g_vfs_backend_finalize), (g_vfs_backend_init), (g_vfs_backend_set_fuse_name), (g_vfs_backend_get_fuse_name), (g_vfs_backend_register_mount): * daemon/gvfsbackend.h: * daemon/gvfsjobunmount.c: (unregister_mount_callback), (send_reply): * daemon/mount.c: (vfs_mount_free), (vfs_mount_to_dbus), (register_mount), (list_mounts): * hal/ghaldrive.c: (g_hal_drive_finalize), (hal_condition), (g_hal_drive_new), (spawn_cb), (g_hal_drive_eject_do), (free_unmount_mounts_op), (_eject_unmount_mounts_cb), (_eject_unmount_mounts), (g_hal_drive_eject): * hal/ghalmount.c: (g_hal_mount_finalize), (unmount_cb), (unmount_read_error), (unmount_do), (g_hal_mount_unmount), (eject_wrapper_callback), (g_hal_mount_eject), (g_hal_mount_eject_finish): * hal/ghalvolume.c: (g_hal_volume_finalize), (do_update_from_hal), (g_hal_volume_new), (g_hal_volume_get_mount), (foreign_mount_unmounted), (g_hal_volume_adopt_foreign_mount), (g_hal_volume_has_foreign_mount_root), (spawn_cb), (mount_foreign_callback), (g_hal_volume_mount), (g_hal_volume_mount_finish), (eject_wrapper_callback), (g_hal_volume_eject), (g_hal_volume_eject_finish): * hal/ghalvolume.h: * hal/ghalvolumemonitor.c: (adopt_orphan_mount), (g_hal_volume_monitor_class_init), (update_volumes), (update_mounts), (update_discs): * hal/hal-device.c: (hal_device_class_init), (_hal_device_hal_condition): * hal/hal-device.h: * hal/hal-marshal.list: * hal/hal-pool.c: (hal_pool_class_init), (_hal_condition), (hal_pool_new): * hal/hal-pool.h: * programs/Makefile.am: * programs/gvfs-mount.c: (unmount_done_cb), (unmount), (main): svn path=/trunk/; revision=1052
* new filesDavid Zeuthen2007-12-171-0/+15
| | | | | | | | | | | | | | | | | | | 2007-12-14 David Zeuthen <davidz@redhat.com> * Makefile.am: * client/gdaemonmount.c: (g_daemon_mount_get_uuid), (g_daemon_mount_can_eject), (g_daemon_mount_eject), (g_daemon_mount_eject_finish), (g_daemon_mount_mount_iface_init): * client/gdaemonvolumemonitor.c: (get_volume_for_uuid), (get_mount_for_uuid), (g_daemon_volume_monitor_class_init): * configure.ac: * hal/*: new files Update to latest gio API changes and add the HAL backend for volume monitoring. svn path=/trunk/; revision=1042
* Update for API changes in gio trunk.David Zeuthen2007-12-111-31/+39
| | | | | | | | | | | | | | | | | | | | | | | 2007-12-11 David Zeuthen <davidz@redhat.com> Update for API changes in gio trunk. * client/Makefile.am: * client/gdaemonfile.c: (g_daemon_file_find_enclosing_mount), (g_daemon_file_file_iface_init): * client/gdaemonvolumemonitor.c: (get_mounts), (get_volumes), (find_mount_by_mount_info), (mount_added), (mount_removed), (g_daemon_volume_monitor_init), (g_daemon_volume_monitor_finalize), (g_daemon_volume_monitor_class_init): * client/gdaemonvolumemonitor.h: * client/gvfsfusedaemon.c: (mount_record_new), (mount_record_for_mount_exists), (mount_list_update), (mount_tracker_mounted_cb), (mount_tracker_unmounted_cb), (subthread_main): * daemon/gvfsbackendtrash.c: (list_trash_dirs): svn path=/trunk/; revision=1037
* 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
* Implement find_enclosing_volumeAlexander Larsson2007-10-311-2/+2
| | | | | | | | | | | | | | | 2007-10-31 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: Implement find_enclosing_volume * client/gdaemonvolume.[ch]: * client/gdaemonvolumemonitor.c: No need to pass volume monitor when createing volumes svn path=/trunk/; revision=1002
* Add all mount info to GMountInfo Make it refcountedAlexander Larsson2007-10-311-3/+3
| | | | | | | | | | | | | | | | | 2007-10-31 Alexander Larsson <alexl@redhat.com> * common/gmounttracker.[ch]: Add all mount info to GMountInfo Make it refcounted * client/gdaemonvfs.[ch]: * client/gdaemonfile.c: * client/gdaemonvolumemonitor.c: Remove GMountRef, replacing its use with GMountInfo svn path=/trunk/; revision=1001
* Don't show not user visible mountsAlexander Larsson2007-10-261-5/+16
| | | | | | | | | | | | | | | | | | 2007-10-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonvolumemonitor.c: Don't show not user visible mounts * daemon/mount.c: Don't give fuse mounts for non visible mounts (as they don't get mounted) * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: Mark as not user visible svn path=/trunk/; revision=997
* Remove spewAlexander Larsson2007-10-191-3/+0
| | | | svn path=/trunk/; revision=985
* Implement using DEFINE_DYNAMIC_TYPE Actually register GDaemonVolumeMonitorAlexander Larsson2007-10-191-2/+28
| | | | | | | | | | | | | | | | 2007-10-19 Alexander Larsson <alexl@redhat.com> * client/gdaemonvfs.[ch]: * client/gdaemonvolume.c: * client/gdaemonvolumemonitor.[ch]: Implement using DEFINE_DYNAMIC_TYPE Actually register GDaemonVolumeMonitor in giomodule * common/gmounttracker.c: Update to the on-dbus format for mounts svn path=/trunk/; revision=983
* Pass in DBusConnection to use instead of using default oneAlexander Larsson2007-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* Dup the mount_info as it doesn't belong to us.Alexander Larsson2007-09-131-2/+1
| | | | | | Original git commit by Hans Petter Jansson <hpj@kzerza.amok> at 1178912076 -0500 svn path=/trunk/; revision=561
* More cleanup.Alexander Larsson2007-09-131-1/+1
| | | | | | Original git commit by Hans Petter Jansson <hpj@kzerza.amok> at 1178860682 -0500 svn path=/trunk/; revision=557
* Clean out the cruft and make GDaemonVolume and GDaemonVolumeMonitor compile.Alexander Larsson2007-09-131-231/+74
| | | | | | Original git commit by Hans Petter Jansson <hpj@kzerza.amok> at 1178860317 -0500 svn path=/trunk/; revision=554
* Add initial GDaemonVolume and GDaemonVolumeMonitor sources.Alexander Larsson2007-09-131-0/+306
Original git commit by Hans Petter Jansson <hpj@kzerza.amok> at 1178826338 -0500 svn path=/trunk/; revision=550