summaryrefslogtreecommitdiff
path: root/monitor
Commit message (Collapse)AuthorAgeFilesLines
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-279-9/+9
| | | | This makes gvfs build with recent glib again, see bug #619537
* Do not ignore CD drives with blank mediaMartin Pitt2010-04-141-3/+4
| | | | | | | | | Extend the special casing of CD drives in should_drive_be_ignored() to also cover blank media. Otherwise we lose the drive for the blank media volume, and with it the possibility to eject it. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=598554 Bug-Ubuntu: https://launchpad.net/bugs/425104
* afc: Detect iPad and set correct icon nameMartin Szulecki2010-04-071-1/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=615039
* Ignore gphoto2 mounts on AFC capable devicesBastien Nocera2010-03-241-0/+10
| | | | | | | Requires a small usbmuxd udev rules change, to mark devices with the USBMUXD_AFC_DEVICE property. https://bugzilla.gnome.org/show_bug.cgi?id=591009
* Identify gdu volume objects using presentable id, not the device fileDavid Zeuthen2010-02-191-46/+29
| | | | | | | We need this bugfix to get LVM2 to work - this is because GduLinuxLvm2Volume objects may not have a device file at all. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Clarify comment in should_drive_be_ignored() functionDavid Zeuthen2010-02-191-3/+1
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add has_presentable() method to GGduVolumeDavid Zeuthen2010-02-192-0/+11
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Use g_strcmp0 to compare strings, not ==David Zeuthen2010-02-191-1/+1
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Handle GduDevice being NULL when stopping the driveDavid Zeuthen2010-02-191-32/+31
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* If a GGduDrive lacks a GduDevice, set removable to FALSEDavid Zeuthen2010-02-191-1/+1
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Update comment stating that it's fine to have a NULL GduDeviceDavid Zeuthen2010-02-191-1/+3
| | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Fix dist issuesTomas Bzatek2010-02-091-2/+2
| | | | | - wrong path used in linking common libs - don't query modules when gio-querymodules is not available
* Update AFC backend and volume monitor for libimobiledevice 0.9.7Nikias Bassen2010-02-012-16/+16
|
* Update AFC backend and volume monitor for libiphone 0.9.6Bastien Nocera2010-01-261-2/+2
|
* Fix dist issue1.5.2Alexander Larsson2010-01-251-4/+5
| | | | | | We need to always know how to build the hal-marshal.[ch] files and that they are BUILD_SOURCES because otherwise we can't dist if hal is disabled.
* Enable support for lazy loading of gio modulesAlexander Larsson2010-01-122-1/+12
|
* [gdu] Be more careful with automounting - use a whitelistDavid Zeuthen2009-12-081-4/+47
| | | | | | | | | | | | | | The current behavior is that we try to automount all filesystems. This has unintended consequences for big iron boxes connected to a SAN when the user is logging in as root (thus having all polkit authorizations at hand) - literally hundreds or thousands of devices may get mounted. As such, only automount filesystems from the current whitelist - anything connected via USB or Firewire or SDIO buses - optical discs Signed-off-by: David Zeuthen <davidz@redhat.com>
* [gdu] Prefer using dev_t to device file when comparing devicesDavid Zeuthen2009-12-086-12/+109
| | | | | | | | | | | | This works around new behavior in mount(8) where it decides to put /dev/mapper/<blah> in /etc/mtab instead of the /dev/dm-0 device that the user actually requested. Of course /dev/mapper/<blah> currently does not exist in the udev database because of device-mapper brokenness so without this fix things can never work if using a sufficiently new mount(8) command. Signed-off-by: David Zeuthen <davidz@redhat.com>
* [gdu] Stop assuming that drives have no enclosing presentableDavid Zeuthen2009-12-082-28/+66
| | | | | | | | This makes the gdu volume monitor works with recent gnome-disk-utility versions with things like GduHub presentables that represents HBAs and Expanders. This will not affect previous gnome-disk-utility versions. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Move hal-only functions into hal ifdefAlexander Larsson2009-12-011-43/+43
|
* Use new G_IMPLEMENT_INTERFACE_DYNAMIC from glibAlexander Larsson2009-12-014-34/+8
|
* Fix shadowed mount showing up next to existing volume iconMartin Szulecki2009-11-151-6/+9
| | | | | | | | | | The activation_root for a volume was not set when queried and thus causing two icons created for the same volume/mount. Now it already sets the activiation_root in the volume constructor like in the gphoto2 backend. https://bugzilla.gnome.org/show_bug.cgi?id=597802
* [gdu] Use BDMV icon and name if availableBastien Nocera2009-11-091-7/+46
| | | | | | From the mount information, use the BDMV data if it is available. https://bugzilla.gnome.org/show_bug.cgi?id=600887
* Avoid leaking volumes when removing themBastien Nocera2009-11-051-0/+1
|
* Gently handle NULL GduDevice objectsTomas Bzatek2009-11-022-62/+132
| | | | | | | | | This patch adds bunch of tests for NULL GduDevice objects. According to gdu docs, there's a possibility to have GduPresentable and no associated GduDevice. It's not common but true for several special cases - like GduLinuxMdDrive. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Remove dead codeTomas Bzatek2009-11-021-12/+1
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Adaption to latest libiphone APINikias Bassen2009-10-292-12/+12
| | | | | Remove libusbmuxd dependency, and use afc_get_device_info_key to get the model name.
* Silently drop eject error messages when detaching driveTomas Bzatek2009-10-131-2/+13
| | | | | | If there's no media in drive and yet it's marked as detachable, calling eject would cause "no media in drive" error. This is the case with my USB SD card reader.
* Disallow ejecting empty drivesTomas Bzatek2009-10-131-1/+3
| | | | Similar to previous commit, hide the Eject menu item when drive has no media.
* Don't subscribe to unnecessary HAL D-Bus eventsAlban Crequy2009-10-092-7/+7
| | | | Fixes bug 597827
* Use $(AM_V_GEN) for more silent buildChristian Persch2009-10-094-8/+8
| | | | Closes bug #597104
* Fix return value of gdu_drive_can_poll_for_media()David Zeuthen2009-10-081-1/+1
| | | | | If a drive doesn't use removable media, we shouldn't advertise that it can be polled.
* Bug 597864 – Need to separate "Safely Remove Drive" from "Eject"David Zeuthen2009-10-081-30/+22
| | | | | | | | | | | | | Some systems use internal USB devices. Automatically detaching such drives when calling gdu_drive_eject() (triggered by e.g. the eject button in the Nautilus sidebar) as we do right now leads to loss of the drive until reboot (since the device is internal). The only viable option right now is to separate "Safely Remove Drive" and "Eject". If we gain infrastructure to let us know with 100% accuracy that a given receptacle is external we can go back to the previous behavior. See http://bugs.freedesktop.org/show_bug.cgi?id=24343 for details.
* Bug 597041 – Manual umount triggers mount requestDavid Zeuthen2009-10-011-1/+40
| | | | | We also need to consider logical partitions when determining if a drive should be ignored.
* Bug 591005 - Add AFC backendBastien Nocera2009-10-019-1/+715
| | | | | | | | | | | | | Add a backend based on libiphone to access data on Apple's iPhone, and iPod Touch. Code by: Patrick Walton <pcwalton@cs.ucla.edu> Martin Szulecki <opensuse@sukimashita.com> Nikias Bassen <nikias@gmx.li> Bastien Nocera <hadess@hadess.net> http://bugzilla.gnome.org/show_bug.cgi?id=591005
* gphoto2 - Remove built sourcesBastien Nocera2009-10-012-199/+0
| | | | | The HAL marshalling code has nothing to do in the git tree, it's built sources.
* FreeBSD support for gphoto2 backendAlexander Larsson2009-09-231-0/+6
| | | | | Here is a patch from Aurélien Jarno to enable the gphoto2 backend on FreeBSD and GNU/kFreeBSD.
* Prevent access to unitialized memoryMatthias Clasen2009-09-111-0/+2
| | | | Pointed out by clang.
* Fix a typoMatthias Clasen2009-09-111-1/+1
| | | | Found by clang.
* Prevent access to unitialized memoryMatthias Clasen2009-09-111-2/+5
| | | | This has been reported by clang.
* gdu: Pass auth_no_user_interaction option if GMountOperation is NULLDavid Zeuthen2009-08-311-54/+21
| | | | | | | This avoids e.g. the polkit authentication dialogs at start-up. See http://bugs.freedesktop.org/show_bug.cgi?id=22652 for the whole story. Tested-By: Matthias Clasen <mclasen@redhat.com>
* Turn off debugging spew in gphoto2 and proxy monitorsDavid Zeuthen2009-08-142-1/+2
|
* Bug 591808 – Proxy monitor code crashes when volume has no HAL UDIBastien Nocera2009-08-141-0/+2
| | | | | D-Bus doesn't like NULL strings, and the proxy code will crash if we don't have a HAL UDI.
* gphoto2: Handle removal of camera with multiple storage headsDavid Zeuthen2009-08-141-17/+21
|
* port gphoto2 backend and monitor to gudevMartin Pitt2009-08-094-6/+400
| | | | | | | | | | | | | | | | | | | | This works with the ID_GPHOTO2 attribute, which was recently added to libgphoto2: http://sourceforge.net/tracker/?func=detail&aid=2801117&group_id=8874&atid=308874 That initial libgphoto2 patch does not yet pass the actual name, and just sets ID_GPHOTO2="1". However, in this patch we check if it's not "1", and use that as volume name (since it's the "best" one). Otherwise fall back to usb_id and sysfs vendor/model/product names. This also supports ID_MEDIA_PLAYER* attributes for media players with gphoto support. Please see here for the discussion and development progress: http://lists.freedesktop.org/archives/devkit-devel/2009-June/000226.html http://cgit.freedesktop.org/~teuf/media-player-id/ http://bugzilla.gnome.org/show_bug.cgi?id=586410 Signed-off-by: David Zeuthen <davidz@redhat.com>
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-0816-1304/+1777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-178-150/+1816
| | | | | | | | | 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.
* Better handling of PC floppy drivesDavid Zeuthen2009-06-164-3/+37
| | | | | | | | | | | | | | PC Floppy Drives are handled in a special way since we don't poll for media (it would make a lot of noise). Specifically we never probe for the filesystem type. So if encountering a PC Floppy Drive, just always show all volumes from it. Since we already have working support for g_drive_poll_for_media() in Nautilus, things Just Work(tm) http://people.freedesktop.org/~david/dkd-gnome-floppy-welcome-to-the-1980s.png E.g. you can use the "Rescan" menu option to force media detection. Welcome to the 1980s.
* Bug 582772 – gvfsd-computer crashes with SEGSEV in recompute_filesDavid Zeuthen2009-06-161-0/+9
| | | | Never use blank/empty drive names.
* Bug 583494 – Audio CD isn't automounting when insertedDavid Zeuthen2009-06-121-0/+8
|