| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This makes gvfs build with recent glib again, see bug #619537
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=615039
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
| |
- wrong path used in linking common libs
- don't query modules when gio-querymodules is not available
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
From the mount information, use the BDMV data if it is available.
https://bugzilla.gnome.org/show_bug.cgi?id=600887
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
| |
Remove libusbmuxd dependency, and use afc_get_device_info_key
to get the model name.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Similar to previous commit, hide the Eject menu item when drive has no media.
|
|
|
|
| |
Fixes bug 597827
|
|
|
|
| |
Closes bug #597104
|
|
|
|
|
| |
If a drive doesn't use removable media, we shouldn't advertise that it
can be polled.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We also need to consider logical partitions when determining if a
drive should be ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
The HAL marshalling code has nothing to do in the git tree,
it's built sources.
|
|
|
|
|
| |
Here is a patch from Aurélien Jarno to enable the gphoto2 backend on FreeBSD
and GNU/kFreeBSD.
|
|
|
|
| |
Pointed out by clang.
|
|
|
|
| |
Found by clang.
|
|
|
|
| |
This has been reported by clang.
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
D-Bus doesn't like NULL strings, and the proxy code will
crash if we don't have a HAL UDI.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Never use blank/empty drive names.
|
| |
|