David Zeuthen [Sat, 28 Nov 2009 19:04:20 +0000 (14:04 -0500)]
Rename Controller interface to Adapter
David Zeuthen [Sat, 28 Nov 2009 18:47:52 +0000 (13:47 -0500)]
Add support for Port objects
This commit only includes support for ATA ports. Support for SAS and
FibreChannel will follow.
David Zeuthen [Fri, 27 Nov 2009 19:29:59 +0000 (14:29 -0500)]
Also generate D-Bus docs for the Controller interface
David Zeuthen [Fri, 27 Nov 2009 19:27:52 +0000 (14:27 -0500)]
Fix type in udev rules for pci-id
David Zeuthen [Fri, 27 Nov 2009 18:09:31 +0000 (13:09 -0500)]
Initial stab at exporting storage controllers via D-Bus
David Zeuthen [Wed, 25 Nov 2009 21:51:53 +0000 (16:51 -0500)]
Guesstimate the buffer size to use for benchmarking
This gives more precise results and puts an upper bound on time taken
to benchmark (minutes).
David Zeuthen [Wed, 25 Nov 2009 20:52:02 +0000 (15:52 -0500)]
Abort benchmark on IO errors
This happens a lot with DVDs because of "encryption".
David Zeuthen [Wed, 25 Nov 2009 18:00:25 +0000 (13:00 -0500)]
Add DriveWwn, DriveRotationalRate and DriveWriteCache properties
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 25 Nov 2009 17:59:12 +0000 (12:59 -0500)]
Add a method to benchmark drives
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Tue, 3 Nov 2009 20:50:25 +0000 (21:50 +0100)]
Bug 24885 — LVM LVs now have NOPOLICY=0
Commit a95d3 caused the NOPOLICY rules get cut short for LVs. Move the NOPOLICY
check close to the top, since its (1) very cheap, and (2) very generic, i. e.
rules further down might want to tweak it for special cases.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Tue, 3 Nov 2009 17:47:33 +0000 (12:47 -0500)]
Update udev rules to cope better with device-mapper
See https://bugzilla.redhat.com/show_bug.cgi?id=528909#c24 for details.
David Zeuthen [Mon, 2 Nov 2009 21:27:42 +0000 (16:27 -0500)]
Post-release version bump to 010
David Zeuthen [Mon, 2 Nov 2009 21:13:21 +0000 (16:13 -0500)]
Update NEWS for release
David Zeuthen [Mon, 2 Nov 2009 18:57:05 +0000 (13:57 -0500)]
Don't use hyphens in param names
It may upset some tools reading the introspection XML.
Martin Pitt [Wed, 28 Oct 2009 14:30:40 +0000 (15:30 +0100)]
Bug 24718 — Proper handling of missing mkfs.*/fsck.*
Introduce two new errors:
org.freedesktop.DeviceKit.Disks.Error.FilesystemDriverMissing
org.freedesktop.DeviceKit.Disks.Error.FilesystemToolsMissing
which are thrown instead of a general Error.Failed when file system tools (such
as mkfs.<type> or xfs_admin) are not installed, or the kernel does not support
the fs type for FilesystemMount().
Note that this does not yet cover a missing cryptsetup.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Sun, 25 Oct 2009 09:32:58 +0000 (10:32 +0100)]
Bug 24679 — Support creating minix file systems
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Tue, 27 Oct 2009 14:31:33 +0000 (15:31 +0100)]
Bug 24757 – Simplify helper-change-luks-password
Use "set -e" to do the error handling which was previously done manually.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Tue, 27 Oct 2009 14:26:27 +0000 (15:26 +0100)]
Bug 24757 — Bashism in luks helper breaks password changing
Fix bashism in devkit-disks-helper-change-luks-password which broke
LuksChangePassphrase() due to POSIX shell not knowing about "-e".
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Wed, 28 Oct 2009 21:16:09 +0000 (22:16 +0100)]
Bug 24778 — throw_error() segfaults for daemon-internally called methods
Some functions like devkit_disks_device_drive_ata_smart_refresh_data() are used
internally by the daemon, in which case the DBusGMethodInvocation context is
NULL. If these methods throw an error (observed on "daemon is inhibited"), this
NULL context is propagated all the way down to throw_error, which previously
tried to call dbus_g_method_return_error() with a NULL context; there is no
D-Bus method call to terminate, so this caused a segfault.
Change throw_error() to just use g_warning() in this case, so that the error
appears on the daemon's stderr. This makes it generally safe to internally call
D-Bus exported methods.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Sat, 31 Oct 2009 18:12:15 +0000 (14:12 -0400)]
Use BLKPG_ADD_PARTITION when adding a partition
This is similar to the previous commit. We don't want to rely on
libparted because that won't work if another partition on the main
device is busy.
David Zeuthen [Sat, 31 Oct 2009 16:38:02 +0000 (12:38 -0400)]
Use BLKPG_DEL_PARTITION when deleting partitions instead of libparted
Sadly, libparted gets this wrong since it does the equivalent of
'blockdev --rereadpt' which fails if one or more partitions are busy.
Also disallow deleting an extended partition if logical partitions
exist. We can undo this if we add some code to also do DEL_PARTITION
for the logical partitions (including scrubbing signatures).
David Zeuthen [Fri, 30 Oct 2009 17:51:46 +0000 (13:51 -0400)]
Also ignore a device if DM_UDEV_DISABLE_OTHER_RULES_FLAG is set
https://bugzilla.redhat.com/show_bug.cgi?id=528909#c10
David Zeuthen [Wed, 28 Oct 2009 17:23:22 +0000 (13:23 -0400)]
Add new LinuxMdComponentPosition property
David Zeuthen [Wed, 28 Oct 2009 02:23:33 +0000 (22:23 -0400)]
Use unregister facility in dbus-glib 0.82 and misc life-cycle fixes
David Zeuthen [Tue, 27 Oct 2009 16:16:55 +0000 (12:16 -0400)]
Pass -F to mkfs.ext[234] to allow creating a filesystem on the whole disk
David Zeuthen [Mon, 26 Oct 2009 18:34:18 +0000 (14:34 -0400)]
Allow creating a partition table with same scheme as existing one
David Zeuthen [Sun, 25 Oct 2009 00:32:23 +0000 (20:32 -0400)]
Use 'udevadm settle' instead of 15-second timeout
Suggested by Milan Broz <mbroz@redhat.com> in
https://bugzilla.redhat.com/show_bug.cgi?id=530721#c1
David Zeuthen [Sat, 24 Oct 2009 21:46:18 +0000 (17:46 -0400)]
Work around blkid incorrectly detecting FAT on extended partitions
This is really a blkid bug but work around it for now by clearing Id*
properties for extended partitions.
David Zeuthen [Sat, 24 Oct 2009 21:19:12 +0000 (17:19 -0400)]
When updating holders/slaves, defer the updates to an idle handler
This is needed because sometimes updates may depend on the actual
device just being added.
Specifically, this patch fixes a problem with manually unlocking LUKS
devices, e.g.
# echo xyz123 | cryptsetup -T 1 luksOpen /dev/sdb1 foobar
Here we get /dev/dm-0 at some point and then we want to update
/dev/sdb1. But the update of /dev/sdb1 depends on the existence of
/dev/dm-0 - specifically update_info_luks() won't set :DeviceIsLuks
and :Luks before /dev/dm-0 really exists.
Martin Pitt [Thu, 22 Oct 2009 21:43:35 +0000 (23:43 +0200)]
Bug 24673 — Support creating swap fs with labels
mkswapfs supports labels just fine, add support for it to FilesystemCreate().
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Sat, 24 Oct 2009 14:19:35 +0000 (10:19 -0400)]
Pass -T to cryptsetup to handle incorrect passphrases
Also don't sleep on the error path. Also filed a bug for the
root-problem and included the bug reference in the tirade of why we
need to sleep 15 seconds etc.
https://bugzilla.redhat.com/show_bug.cgi?id=530721
David Zeuthen [Sat, 24 Oct 2009 02:12:22 +0000 (22:12 -0400)]
Various device-mapper and cryptsetup fixes
David Zeuthen [Fri, 16 Oct 2009 20:51:39 +0000 (16:51 -0400)]
Post-release version bump to 009
David Zeuthen [Fri, 16 Oct 2009 20:40:18 +0000 (16:40 -0400)]
Update NEWS for release
Martin Pitt [Tue, 13 Oct 2009 18:15:46 +0000 (20:15 +0200)]
Bug 24499 – media players have USB drive icon
Set "media-player" icon for devices which have ID_MEDIA_PLAYER (as set by
media-player-info).
Signed-off-by: David Zeuthen <davidz@redhat.com>
Martin Pitt [Mon, 12 Oct 2009 08:37:11 +0000 (10:37 +0200)]
Bug 24468 – part-id crashes if drive device node does not exist
This fixes a corner case crash if a partition device node exists (like
/dev/sda5), but the corresponding drive device node (like /dev/sda) does not.
This should not happen in a running system, but was reported to occur during a
distribution upgrade.
Just handle the situation gracefully with a proper error message instead of
crashing.
http://bugs.freedesktop.org/show_bug.cgi?id=24468
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 9 Oct 2009 15:12:10 +0000 (11:12 -0400)]
Bug 24264 – Crash on removing NULL value from hash in device_remove()
Properly handle the situtation where we're processing a 'change' event
but the 'remove' event has happened but is still queued up in our own
process. Also handle device file renames and 'move' uevents.
https://bugs.freedesktop.org/show_bug.cgi?id=24264
Martin Pitt [Tue, 6 Oct 2009 18:54:27 +0000 (20:54 +0200)]
Bug 24351 – Firewire hard drive is considered system-internal
Firewire subsystem is called "ieee1394" in current Linux. Now check for both
"ieee1394" and "firewire". This fixes firewire drives to not be considered
system internal any more.
https://bugs.freedesktop.org/show_bug.cgi?id=24351
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 9 Oct 2009 14:14:55 +0000 (10:14 -0400)]
Bug 24343 – Unintended side-effect when calling DriveDetach()
Some laptops like the Dell Mini 10 have builtin SD card readers which
are wired through an internal USB bus. The current behaviour is that
if you click the eject button in nautilus, the card reader device gets
ejected and disconnected, and cannot be reactivated ever, except by a
reboot.
The cause of this is that DK-d's update_info_drive() sets "can_detach"
for all USB devices currently, which causes
devkit-disks-helper-drive-detach to be called on them.
https://bugs.freedesktop.org/show_bug.cgi?id=24343
Martin Pitt [Thu, 8 Oct 2009 18:32:51 +0000 (20:32 +0200)]
Bug 24129 – Please mount vfat disks with shortname=mixed
The previous default, shortname=lower, breaks all-uppercase file names ("touch
FOO" creates "foo"), thus breaks rsync, and Windows compatibility.
The default was changed in the Linux kernel as well, see
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=
955234755ce4a2c33cfc558912aa8f2148cc1fc6
https://bugs.freedesktop.org/show_bug.cgi?id=24129
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 9 Oct 2009 13:58:51 +0000 (09:58 -0400)]
Bug 24054 – Devickit-disks doesn't support changing ntfs label
Maxim Levitsky [Fri, 9 Oct 2009 12:57:38 +0000 (14:57 +0200)]
Bug 24053 – MMC cards aren't automounted.
Show MMC/MemStick cards by default. The previous whitelist in the
udev rules ignored them.
https://bugs.freedesktop.org/show_bug.cgi?id=24053
Signed-off-by: David Zeuthen <davidz@redhat.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Martin Pitt [Tue, 6 Oct 2009 08:51:09 +0000 (10:51 +0200)]
Bug 24052 – CDROM eject button is locked while CDROM is mounted
Unlike in the hal world, we do not have a daemon polling CD drives for eject
button presses. In order to make hardware tray eject buttons work, unlock the
tray after mounting a CD.
This is pretty much equivalent to yanking out USB sticks, which we already
handle reasonably (detecting disappeared device, force-unmounting).
https://bugs.freedesktop.org/show_bug.cgi?id=24052
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Mon, 5 Oct 2009 18:31:22 +0000 (14:31 -0400)]
Actually inhibit the daemon when Inhibit() is called
Guess this was forgotten with the polkit-1 porting effort.
David Zeuthen [Fri, 18 Sep 2009 22:41:22 +0000 (18:41 -0400)]
Post-release version bump to 008
David Zeuthen [Fri, 18 Sep 2009 22:37:40 +0000 (18:37 -0400)]
Update NEWS for release
David Zeuthen [Fri, 18 Sep 2009 22:14:19 +0000 (18:14 -0400)]
Bug 23926 – Error creating partition
When creating a partition we may already have received the uevent for
the new partition. Check for this before waiting for it.
Evan Dandrea [Fri, 18 Sep 2009 21:46:47 +0000 (17:46 -0400)]
Bug 23541 – PartitionTableCreate method times out
... when 'none' is specified as a parameter.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 18 Sep 2009 20:36:22 +0000 (16:36 -0400)]
Bug 23579 – Must allow DBus Properties interface for g-d-u to work
Matthias Clasen [Fri, 18 Sep 2009 20:32:01 +0000 (16:32 -0400)]
Bug 23761 – Some leaks
g_hash_table_get_values returns a newly-allocated GList. The callers
of devkit_disks_daemon_local_get_all_devices need to free it.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 18 Sep 2009 20:30:03 +0000 (16:30 -0400)]
Bug 23762 – Fix typo
David Zeuthen [Fri, 18 Sep 2009 20:28:11 +0000 (16:28 -0400)]
Bug 23764 – Small leak in update_drive_properties_from_sysfs
David Zeuthen [Fri, 18 Sep 2009 20:26:27 +0000 (16:26 -0400)]
Bug 23823 – NULL dereference
David Zeuthen [Fri, 18 Sep 2009 20:23:42 +0000 (16:23 -0400)]
Bug 23824 – Unused variable
David Zeuthen [Fri, 18 Sep 2009 20:22:12 +0000 (16:22 -0400)]
Bug 23825 – Leak in update_info_mount_state
David Zeuthen [Fri, 18 Sep 2009 20:19:44 +0000 (16:19 -0400)]
Bug 23826 – NULL dereference
David Zeuthen [Fri, 18 Sep 2009 20:15:59 +0000 (16:15 -0400)]
Bug 23827 – Undefined value
David Zeuthen [Fri, 18 Sep 2009 20:13:31 +0000 (16:13 -0400)]
Bug 23828 – Undefined value in umount-devkit.c
David Zeuthen [Fri, 18 Sep 2009 20:11:46 +0000 (16:11 -0400)]
Bug 23829 – Undefined value in partutil.c
David Zeuthen [Fri, 18 Sep 2009 16:23:39 +0000 (12:23 -0400)]
Use WindowsStyleCaps for property names
Technically any UTF-8 string can be used for a property name. However,
some tools are incapable of handling property names with dashes ('-')
in them. So change to using the recommending naming. See
http://lists.freedesktop.org/archives/devkit-devel/2009-September/000430.html
for discussion.
This is based on a patch from Davide Bettio <davide.bettio@kdemail.net>.
David Zeuthen [Tue, 15 Sep 2009 15:27:47 +0000 (11:27 -0400)]
Also be paranoid about the UUID containing '/' characters
This can't really happen (for known filesystems) so this "fix" is
really only for people playing along at home. See
http://bugs.freedesktop.org/show_bug.cgi?id=23235
for more details.
David Zeuthen [Sun, 23 Aug 2009 18:12:49 +0000 (14:12 -0400)]
Rework ATA SMART handling
Basically make everything a lot simpler. Also don't store blobs in a
database. For now at least - we might want to add that feature back at
some point.
David Zeuthen [Mon, 17 Aug 2009 20:48:09 +0000 (16:48 -0400)]
Bug 22914 – Require password to eject a CD or DVD mounted by the same user
Apparently this got messed up in the port to polkit1.
David Zeuthen [Mon, 17 Aug 2009 18:10:02 +0000 (14:10 -0400)]
Post-release version bump to 007
David Zeuthen [Mon, 17 Aug 2009 17:50:56 +0000 (13:50 -0400)]
Update NEWS for release
David Zeuthen [Mon, 17 Aug 2009 17:02:29 +0000 (13:02 -0400)]
Bug 23235 – Cannot mount disc with / (slash) in label
David Zeuthen [Mon, 17 Aug 2009 15:55:01 +0000 (11:55 -0400)]
Make FilesystemMount() accept an 'auth_no_user_interaction' option
This allows automounters to request that no user interaction should ever
take place. See
https://bugs.freedesktop.org/show_bug.cgi?id=22652
for discussion.
David Zeuthen [Mon, 17 Aug 2009 15:02:12 +0000 (11:02 -0400)]
Ignore loop and ram devices for now
David Zeuthen [Mon, 17 Aug 2009 14:50:36 +0000 (10:50 -0400)]
Add a new :device-presentation-nopolicy property
Desktops should read this property and avoid automounting etc. if it
is set to 1.
David Zeuthen [Fri, 14 Aug 2009 15:07:24 +0000 (11:07 -0400)]
Bug 23309 – Udev rules probe floppy drives when they shouldn't
David Zeuthen [Mon, 10 Aug 2009 17:05:06 +0000 (13:05 -0400)]
Fix up object path mapping
In particular this failed with AoE devices which has basenames of the
form "etherd!e0.1". Should work for everything now.
Martin Pitt [Fri, 10 Jul 2009 16:31:07 +0000 (18:31 +0200)]
Hide recovery, boot, and hidden partitions from desktops
Set DKD_PRESENTATION_HIDE for partitions which desktops should hide, such as
EFI, Apple bootstrap, or recovery partitions.
For recovery partitions is a direct port of the earlier hal fdis:
http://cgit.freedesktop.org/hal/tree/fdi/policy/10osvendor/20-storage-methods.fdi#n80
Apple boostrap, EFI, and hidden partitions now don't rely on labels any more,
but directly check partitioning schema (mbr, GUID) and types.
libgdu evaluates this and exports it as device-presentation-hide
property, which gvfs respects.
https://bugs.freedesktop.org/show_bug.cgi?id=22707
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Sun, 9 Aug 2009 22:07:53 +0000 (18:07 -0400)]
Require latest libatasmart
This version of libatasmart has a new ABI/API with new features. We
won't initially take advantage of these new features so just do a
simple port for now.
David Zeuthen [Sun, 9 Aug 2009 18:39:47 +0000 (14:39 -0400)]
Rely on the disk to spin itself down
In other words, instead of playing games with watching
/sys/block/sdX/stat files and sending a STANDBY IMMEDIATE command when
these haven't changed for a while, just use the STANDBY command itself
with the timeout value.
This avoids having to wake up the daemon every five seconds. In
addition, this change ensures that device specific minimums are
respected.
We didn't do this in the original commit because while testing the
feature, some of disks, notably ones from WD, appeared to not respect
the STANDBY command. However, when moved to another enclosure (the
disks was initially in a SATA PM enclosure, it got moved to a SAS
enclosure) things started working again. Also turns out the WD disk in
question has a device specific timeout of 10 minutes.
David Zeuthen [Sat, 8 Aug 2009 18:52:50 +0000 (14:52 -0400)]
Add LinuxMdCreate method
Also fix a bug in PartitionTableCreate so we don't return until the
partition table has actually been created.
David Zeuthen [Wed, 5 Aug 2009 16:00:10 +0000 (12:00 -0400)]
Add Device:drive-is-rotational property
This new property can be used to make a distinction between hard disks
and SSDs, see
http://people.freedesktop.org/~david/palimpsest-new-treeview.png
for an example.
David Zeuthen [Wed, 22 Jul 2009 14:53:54 +0000 (10:53 -0400)]
Fix up ATA SMART detection
Recent udev started using ata_id instead of scsi_id.
Also migrate from SYSFS to ATTR/ATTRS.
David Zeuthen [Wed, 8 Jul 2009 20:14:27 +0000 (16:14 -0400)]
Misc fixes for optical disc detection
David Zeuthen [Tue, 7 Jul 2009 18:34:44 +0000 (14:34 -0400)]
Move data files into a separate directory
David Zeuthen [Tue, 7 Jul 2009 01:24:50 +0000 (21:24 -0400)]
Move implementation of DrivePollMedia into a separate process
Much much better to do this from a helper process since some
devices/drivers may hang the process in state D (uninterruptible IO)
until the device was removed. This was the last place where we opened
the device from the daemon.
David Zeuthen [Tue, 7 Jul 2009 00:57:28 +0000 (20:57 -0400)]
Work around media detection problems
Seems that the kernel won't revalidate media unless O_NONBLOCK is
passed. This contradicts how things are supposed to work (O_NONBLOCK
is a hint to avoid testing things like media state), see
http://bugzilla.kernel.org/show_bug.cgi?id=13029 for more information.
So to be on the safe side, open the device both with and without
O_NONBLOCK.
David Zeuthen [Tue, 7 Jul 2009 00:44:03 +0000 (20:44 -0400)]
Add --poll-for-media option to devkit-disks(1)
David Zeuthen [Sat, 4 Jul 2009 22:31:24 +0000 (18:31 -0400)]
Pass size of buffer to avoid Z_BUF_ERROR when compressing ATA SMART blob
David Zeuthen [Sat, 4 Jul 2009 19:44:26 +0000 (15:44 -0400)]
Fix polling process title and turn off noisy debugging spew
David Zeuthen [Sat, 4 Jul 2009 19:41:47 +0000 (15:41 -0400)]
Fix segfault when starting a Linux MD array
David Zeuthen [Sun, 21 Jun 2009 23:07:20 +0000 (19:07 -0400)]
Add a way to spin down drives
David Zeuthen [Fri, 19 Jun 2009 23:12:59 +0000 (19:12 -0400)]
Post-release version bump to 006
David Zeuthen [Fri, 19 Jun 2009 23:10:15 +0000 (19:10 -0400)]
Update NEWS for release
Also includes news about the 004 release since that slipped in the
previous release...
David Zeuthen [Fri, 19 Jun 2009 22:55:20 +0000 (18:55 -0400)]
Use AM_SILENT_RULES if available
David Zeuthen [Fri, 19 Jun 2009 22:51:26 +0000 (18:51 -0400)]
Clean up build a bit
David Zeuthen [Fri, 19 Jun 2009 22:41:03 +0000 (18:41 -0400)]
Remove unused SMART test files
David Zeuthen [Fri, 19 Jun 2009 22:26:01 +0000 (18:26 -0400)]
Sort out dbus-glib registration mess
We sometimes segfaulted when stopping a RAID device. The problem here
was that we kept the exported D-Bus object around until it was
finalized (by using weak refs). This was problematic because several
change events were treated as add events but the state of the RAID
device was such that we didn't want to add the object anyway. So we
ended up unreffing the object. Which means that the job completion
func accessed a unreferenced object.
The solution here is to remove the object from our hashes as soon as
we want to remove it.
Since we don't have dbus_g_connection_unregister_g_object() just yet
(available in dbus-glib >= 0.81) we just keep the object on the
bus. If we later wants to add a new object but the old object is still
around we use an undocumented hack to unregister the object.
You will also need eggdbus >= 0.5, otherwise introspection won't work.
David Zeuthen [Thu, 18 Jun 2009 20:02:14 +0000 (16:02 -0400)]
Add API to check/repair Linux MD RAID arrays
David Zeuthen [Thu, 18 Jun 2009 17:16:57 +0000 (13:16 -0400)]
Use ID_CDROM_MEDIA to detect optical drives
This is available since udev 142 that we already depend on. This
change makes my USB stick from Sandisk "work" as "expected":
http://people.freedesktop.org/~david/thanks-sandisk.png
David Zeuthen [Thu, 18 Jun 2009 16:59:43 +0000 (12:59 -0400)]
Update udev rules
- depend on udev >= 142 since that will pull in /sbin/blkid
- avoid probing dm or md if it has been done already
- don't create symlinks for dm
David Zeuthen [Wed, 17 Jun 2009 19:32:02 +0000 (15:32 -0400)]
GIO modules, for the polkit action lookup module, need to be prefixed with lib
David Zeuthen [Tue, 16 Jun 2009 23:47:20 +0000 (19:47 -0400)]
Better handling of Floppy and Zip drives
Welcome to the 1980s
David Zeuthen [Tue, 16 Jun 2009 20:41:03 +0000 (16:41 -0400)]
Bug 22149 – Do not poll floppy drives
Avoid polling PC floppy drives since that makes a lot of
noise. DrivePollMedia() still works, e.g.
dbus-send --system --print-reply --dest=org.freedesktop.DeviceKit.Disks \
/org/freedesktop/DeviceKit/Disks/devices/fd0 \
org.freedesktop.DeviceKit.Disks.Device.DrivePollMedia
Note, though, that udev will not run /sbin/blkid on the device. So
desktops wanting to support this needs to ignore the fstype for floppy
drives and just attempt to mount it anyway.
David Zeuthen [Mon, 15 Jun 2009 19:51:54 +0000 (15:51 -0400)]
Fix bug when retrieving historical ATA SMART data
David Zeuthen [Mon, 15 Jun 2009 16:00:39 +0000 (12:00 -0400)]
Use gudev-1.0 instead of devkit-gobject
Can't believe how easy this port was...