platform/upstream/udisks2.git
12 years agoUDisksClient: add a rate-limited ::change signal
David Zeuthen [Fri, 30 Sep 2011 16:51:59 +0000 (12:51 -0400)]
UDisksClient: add a rate-limited ::change signal

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUDisksClient: add get_cleartext_block() method
David Zeuthen [Fri, 30 Sep 2011 16:05:53 +0000 (12:05 -0400)]
UDisksClient: add get_cleartext_block() method

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoMake udisks_util_get_drive_info() a method on UDisksClient
David Zeuthen [Fri, 30 Sep 2011 14:03:36 +0000 (10:03 -0400)]
Make udisks_util_get_drive_info() a method on UDisksClient

And also make it use the HintName and HintIconName properties.

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoClarify docs for udisks_client_get_block_for_drive()
David Zeuthen [Fri, 30 Sep 2011 13:33:52 +0000 (09:33 -0400)]
Clarify docs for udisks_client_get_block_for_drive()

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAdd properties about currently inserted optical media to the drive interface
David Zeuthen [Thu, 29 Sep 2011 18:01:05 +0000 (14:01 -0400)]
Add properties about currently inserted optical media to the drive interface

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoReorder some properties
David Zeuthen [Thu, 29 Sep 2011 14:28:26 +0000 (10:28 -0400)]
Reorder some properties

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoIntroduce DeviceBusy error and use it in Filesystem.Unmount()
David Zeuthen [Wed, 28 Sep 2011 18:32:34 +0000 (14:32 -0400)]
Introduce DeviceBusy error and use it in Filesystem.Unmount()

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUDisksClient: add get_drive_for_block() method
David Zeuthen [Wed, 28 Sep 2011 14:04:09 +0000 (10:04 -0400)]
UDisksClient: add get_drive_for_block() method

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUDisksClient: add get_block_for_drive() method
David Zeuthen [Tue, 27 Sep 2011 16:08:37 +0000 (12:08 -0400)]
UDisksClient: add get_block_for_drive() method

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdate docs
David Zeuthen [Fri, 23 Sep 2011 14:23:28 +0000 (10:23 -0400)]
Update docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoMake it possible to simulate SMART data on devices that don't support SMART
David Zeuthen [Sat, 3 Sep 2011 14:16:40 +0000 (10:16 -0400)]
Make it possible to simulate SMART data on devices that don't support SMART

This is useful in e.g. VirtualBox.

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoDocument the atasmart_blob option
David Zeuthen [Fri, 2 Sep 2011 20:21:38 +0000 (16:21 -0400)]
Document the atasmart_blob option

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdate SMART functionality
David Zeuthen [Fri, 2 Sep 2011 20:07:00 +0000 (16:07 -0400)]
Update SMART functionality

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoCatch up with GLib changes
David Zeuthen [Thu, 1 Sep 2011 19:18:54 +0000 (15:18 -0400)]
Catch up with GLib changes

s/g_unix_signal_add_watch_full/g_unix_signal_add_full/

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoMerge remote-tracking branch 'origin/gdbus-port'
David Zeuthen [Fri, 26 Aug 2011 17:14:47 +0000 (13:14 -0400)]
Merge remote-tracking branch 'origin/gdbus-port'

Conflicts:
tools/udisks-bash-completion.sh
tools/udisks.c

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoRevert "Add nilfs2 file system support"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Add nilfs2 file system support"

This reverts commit 8b0fcd17235127af9f4ce33f518022f359d55e4a.

12 years agoRevert "Bug 26258 — initial btrfs support"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Bug 26258 — initial btrfs support"

This reverts commit 0da4c9cf59e2a977553b5473faf9aa422a1aff47.

12 years agoRevert "Fix btrfs properties"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix btrfs properties"

This reverts commit 349273e5d54dee7953b0de3ec5b959cc529eb5a0.

12 years agoRevert "profile.h: Add missing include"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "profile.h: Add missing include"

This reverts commit 1b07af9ffe790c54dbe862321e81947e60520127.

12 years agoRevert "Bug 30332 — udisks does not tear down LUKS devices when the slave is forcibly...
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Bug 30332 — udisks does not tear down LUKS devices when the slave is forcibly removed"

This reverts commit 16529b69f7b1ab33e2b92f99cc3bef17d6f20a25.

12 years agoRevert "testsuite: fix race with SMART data"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: fix race with SMART data"

This reverts commit f1c8f3cadc3441189e00427abed1a2190214d38e.

12 years agoRevert "testsuite: Fix SMART test for SSDs"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Fix SMART test for SSDs"

This reverts commit 495356d0457ce99807a90d0de0f17e305d7e46ce.

12 years agoRevert "testsuite: LVM: fix naming assumptions"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: LVM: fix naming assumptions"

This reverts commit cb9263122e90391bd9fe4a2d8859c596030ecdda.

12 years agoRevert "Fix mkfs.ext* arguments"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix mkfs.ext* arguments"

This reverts commit bb813b444e95a987c4f1ceaff244e97e485598a4.

12 years agoRevert "Fix creating NTFS on raw devices"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix creating NTFS on raw devices"

This reverts commit e180c5738e8d997090f29f67308f4ecb4fab1656.

12 years agoRevert "testsuite: Move to scsi_debug"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Move to scsi_debug"

This reverts commit 337c180cd69e1ff3eb8fc2c1b77abdba5feb3967.

12 years agoRevert "Also export UDISKS_DM_TARGET_PARAMS for 'multipath' target"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Also export UDISKS_DM_TARGET_PARAMS for 'multipath' target"

This reverts commit e014838956eb2d926ce2db28b48d202e4fae9db7.

12 years agoRevert "Add nilfs2 label rename"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Add nilfs2 label rename"

This reverts commit 7a4a5e7f3ecb568a1670ec056d297e636e2a567f.

12 years agoRevert "udisks: fix a bug of unquoted/unescaped label string"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "udisks: fix a bug of unquoted/unescaped label string"

This reverts commit 0b4189b6d34d9ad1318381410e0d27edd10b7c62.

12 years agoRevert "partutil: Explicitly use PART_TYPE_UNKNOWN"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "partutil: Explicitly use PART_TYPE_UNKNOWN"

This reverts commit 5d07c97811138fa1542dd09f3178dad812b81a23.

12 years agoRevert "Fix uninitialized variable in part-id"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix uninitialized variable in part-id"

This reverts commit dd48c454f14b6063f8584631f04bf4528969a82b.

12 years agoRevert "testsuite: Check forced removal of LUKS encrypted device"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Check forced removal of LUKS encrypted device"

This reverts commit 5cf279606c8163b8cf65906b2028db711fba8f0b.

12 years agoRevert "testsuite: Test forced removal of standard devices"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Test forced removal of standard devices"

This reverts commit 1decd59b128f44fffe88feae0644430419a69b23.

12 years agoRevert "udisks: Avoid deprecated polkit_authority_get() function"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "udisks: Avoid deprecated polkit_authority_get() function"

This reverts commit 813578196f08c599c7e87c45aff808db0148303d.

12 years agoRevert "Fix building with Linux 2.6.37"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix building with Linux 2.6.37"

This reverts commit 1f97cf90f30a6184486cee8877494eb828a34da4.

12 years agoRevert "testsuite: Check correct handling of labels with funny characters"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Check correct handling of labels with funny characters"

This reverts commit 8781f898aec9b098807cb6ce5c7d4115b3c2fdba.

12 years agoRevert "udisks: escape backslash for label string"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "udisks: escape backslash for label string"

This reverts commit 3d420825ce14c3b867571c22413fd9bc48738a6e.

12 years agoRevert "testsuite: use shorter label for renaming"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: use shorter label for renaming"

This reverts commit 8fd70cff1aa2111212cc9d874a076fb9739dadf1.

12 years agoRevert "Escape NTFS labels properly"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Escape NTFS labels properly"

This reverts commit 774e8353e7753d118b449310c03d9f811cef7c3a.

12 years agoRevert "simplify validate_and_escape_label()"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "simplify validate_and_escape_label()"

This reverts commit 1c81be33e87e7dffde0c4c4b4ec278011710dbd9.

12 years agoRevert "Fix hang on setting invalid VFAT labels"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Fix hang on setting invalid VFAT labels"

This reverts commit 8048a1cb8ae2de37c9fe9b07cc28ebafa0de7231.

12 years agoRevert "update NEWS for 1.0.2 release"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "update NEWS for 1.0.2 release"

This reverts commit abc0e3d491435eded57a5b25cfef8cd40f9f6c1e.

12 years agoRevert "Post-release version bump to 1.0.3"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Post-release version bump to 1.0.3"

This reverts commit 46da5bcaeecfb0d088a57061a293b43e0d13e45a.

12 years agoRevert "Hide recovery partition on newer Lenovo machines"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Hide recovery partition on newer Lenovo machines"

This reverts commit 77fcb26a5088611f463314b7ff45c1822536cdac.

12 years agoRevert "testsuite: fix race in LVM"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: fix race in LVM"

This reverts commit e40cc25ae1c0bd57f9e70de860349a44751f3aae.

12 years agoRevert "testsuite: Port to Python 3"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Port to Python 3"

This reverts commit 0c452859956262155c8940433e00658ec5b1fbca.

12 years agoRevert "testsuite: Update assert statements"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "testsuite: Update assert statements"

This reverts commit 31c7236f751e80b285da04ba4379bb98f809cb44.

12 years agoRevert "Ignore broken directory permissions on UDF media"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Ignore broken directory permissions on UDF media"

This reverts commit 2d1901f74725da29c7af7602e1c74faf55f14672.

12 years agoRevert "Bug 32917 — EeePC 900 SD card reader icon looks like a usb stick in GNOME"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Bug 32917 — EeePC 900 SD card reader icon looks like a usb stick in GNOME"

This reverts commit d0cafeb4e9e64fcb660d11a197d8405f28bb5a95.

12 years agoRevert "Bug 32232 – CVE-2010-4661: Arbitrary kernel module load"
David Zeuthen [Fri, 26 Aug 2011 17:09:41 +0000 (13:09 -0400)]
Revert "Bug 32232 – CVE-2010-4661: Arbitrary kernel module load"

This reverts commit c933a929f07421ec747cebb24d5e620fc2b97037.

12 years agoRevert "Fix warning message"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Fix warning message"

This reverts commit cf76dc036a7db0804bd22f731dadddf9e128f03a.

12 years agoRevert "Fix all warnings caused by -Wunused-but-set-variable"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Fix all warnings caused by -Wunused-but-set-variable"

This reverts commit 75aa5d3b67ace13eba3d2e39f0806742e1fd7bb5.

12 years agoRevert "Update comment about validating requested filesystem type"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Update comment about validating requested filesystem type"

This reverts commit 81cb4740de3ac2a790f1c093eba5f064ced0a2a5.

12 years agoRevert "Nuke generated D-Bus code from distribution tarballs"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Nuke generated D-Bus code from distribution tarballs"

This reverts commit 89bdcc7686c4ef5aeba6ef4bce1be2b5b5c79bce.

12 years agoRevert "Nuke the PolicyKit extension as that is now deprecated"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Nuke the PolicyKit extension as that is now deprecated"

This reverts commit fb08e3ab42152222795d271e76e57b1b9297a702.

12 years agoRevert "Fix udisks --eject-options"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Fix udisks --eject-options"

This reverts commit 4b4746ee28804cb50229c6c42457c4f80c60faca.

12 years agoRevert "throw_error(): Print error to stderr when being called internally"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "throw_error(): Print error to stderr when being called internally"

This reverts commit af80cd56e3b68cbc0de1fa1d03f9b2b2463aa514.

12 years agoRevert "Support calling device_drive_eject() and device_filesystem_unmount() from...
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Support calling device_drive_eject() and device_filesystem_unmount() from daemon"

This reverts commit 378a755bbe24e1118caa6a278bcbc585213e7a05.

12 years agoRevert "Remove blkid probing of device-mapper nodes"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Remove blkid probing of device-mapper nodes"

This reverts commit 8f01c260f42f4478160b9baf45d8298b2f02421e.

12 years agoRevert "Mark Realtek PCI flash card reader as such"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Mark Realtek PCI flash card reader as such"

This reverts commit 361a2ce3f2fc0b6ef02ac11d31bf77a0a9354e70.

12 years agoRevert "Add override for system internal property"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Add override for system internal property"

This reverts commit 156ebd5ca8f88b7a4772c03ed269ae30718f866d.

12 years agoRevert "Add missing comma in fs whitelist"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Add missing comma in fs whitelist"

This reverts commit 75b6187f77ca95ce435dd78f2ecb244af55e7faf.

12 years agoRevert "Add "unmount" option to DriveEject"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Add "unmount" option to DriveEject"

This reverts commit 1c7d933431e49ff6840a388eb23134633155a442.

12 years agoRevert "Bug 34710 — CD-ROM polling failed due to O_EXCL flag"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Bug 34710 — CD-ROM polling failed due to O_EXCL flag"

This reverts commit 2d0272eb3be71f6ee3f52c55a3d608764b675fb0.

12 years agoRevert "Bug 38535 – A DeviceAutoMountHint attribute should be added to udisks"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Bug 38535 – A DeviceAutoMountHint attribute should be added to udisks"

This reverts commit 858adbac9dce63da52764b2d2157bc7782b304a5.

12 years agoRevert "Add UDISKS_AUTOMOUNT_HINT to the udisks(7) man page"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Add UDISKS_AUTOMOUNT_HINT to the udisks(7) man page"

This reverts commit ce27a0f7e45cd66b18fcbfe1c8f38ef9e8d4e903.

12 years agoRevert "Teach udisks(1) about the new automount hint and spell automount as one word"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Teach udisks(1) about the new automount hint and spell automount as one word"

This reverts commit 43392bd4b7c72892b08e49a6c0afaef9f572695a.

12 years agoRevert "Update NEWS for release"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Update NEWS for release"

This reverts commit c1e14e10f700c5a36d136004f3f3a04791cb8d9e.

12 years agoRevert "Post-release version bump to 1.0.4"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Post-release version bump to 1.0.4"

This reverts commit 32c2f555e5a1ae4303bf1f7e7c229c891327ac77.

12 years agoRevert "Fix typo in configure"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Fix typo in configure"

This reverts commit 91405103e0267c73c76f44be5e1de7169884d8c6.

12 years agoRevert "Mark all rts_pstor devices as card readers"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Mark all rts_pstor devices as card readers"

This reverts commit cd0644df1279a9a04c5ff15220381a64de0224fa.

12 years agoRevert "Change the default for LVM2 and dm-multipath support to off"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Change the default for LVM2 and dm-multipath support to off"

This reverts commit 99de237eed6a026597e9b045527631c42ab86968.

12 years agoRevert "Bug 24265 – Needs to create /var/run/udisks/ on demand"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Bug 24265 – Needs to create /var/run/udisks/ on demand"

This reverts commit bd0e9b6f62957f7bc99d01edaedb45a2e8ed8ac8.

12 years agoRevert "Update NEWS for release"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Update NEWS for release"

This reverts commit 36329d9548aa9d4016f919f4a19ed7c0d1fbeb11.

12 years agoRevert "Post-release version bump to 1.0.5"
David Zeuthen [Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)]
Revert "Post-release version bump to 1.0.5"

This reverts commit 3cc1015e12c83165d838ca9e5d3ecb22ffb09b74.

12 years agoPost-release version bump to 1.0.5
David Zeuthen [Fri, 26 Aug 2011 15:49:14 +0000 (11:49 -0400)]
Post-release version bump to 1.0.5

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdate NEWS for release
David Zeuthen [Fri, 26 Aug 2011 15:44:14 +0000 (11:44 -0400)]
Update NEWS for release

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoBug 24265 – Needs to create /var/run/udisks/ on demand
David Zeuthen [Fri, 26 Aug 2011 15:32:42 +0000 (11:32 -0400)]
Bug 24265 – Needs to create /var/run/udisks/ on demand

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoChange the default for LVM2 and dm-multipath support to off
David Zeuthen [Fri, 26 Aug 2011 15:09:24 +0000 (11:09 -0400)]
Change the default for LVM2 and dm-multipath support to off

The udev integration in device-mapper (and its users) is not exactly
working well - for example, you need to run 'udevadm trigger' in order
for the /lib/udev/udisks-lvm-pv-export prober to kick
in. Additionally, the fact that we run said prober on new events is
causing a lot of problems because its use of liblvm and the fact that
liblvm cannot currently be safely used in the udev path.

Signed-off-by: David Zeuthen <davidz@redhat.com>
Signed-off-by: Kay Sievers <kay@redhat.com>
12 years agoRename BlockDevice interface to Block
David Zeuthen [Wed, 24 Aug 2011 18:27:19 +0000 (14:27 -0400)]
Rename BlockDevice interface to Block

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoMove docs around a bit
David Zeuthen [Wed, 24 Aug 2011 17:43:02 +0000 (13:43 -0400)]
Move docs around a bit

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdate to latest gdbus-codegen(1) tool
David Zeuthen [Wed, 24 Aug 2011 17:28:08 +0000 (13:28 -0400)]
Update to latest gdbus-codegen(1) tool

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoFix use of unitialized variables discovered when building with -O2
David Zeuthen [Wed, 17 Aug 2011 13:43:52 +0000 (09:43 -0400)]
Fix use of unitialized variables discovered when building with -O2

Gah

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoDon't dereference a NULL pointer
David Zeuthen [Tue, 16 Aug 2011 17:05:13 +0000 (13:05 -0400)]
Don't dereference a NULL pointer

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoFactor block devices into separate types
David Zeuthen [Tue, 16 Aug 2011 16:36:42 +0000 (12:36 -0400)]
Factor block devices into separate types

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoFactor out drive functionality into three separate types
David Zeuthen [Tue, 16 Aug 2011 14:50:33 +0000 (10:50 -0400)]
Factor out drive functionality into three separate types

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoRefine the libudev hack
David Zeuthen [Mon, 15 Aug 2011 17:06:33 +0000 (13:06 -0400)]
Refine the libudev hack

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoWorkaround get_usec_since_initialized() not always working in libudev
David Zeuthen [Mon, 15 Aug 2011 16:18:34 +0000 (12:18 -0400)]
Workaround get_usec_since_initialized() not always working in libudev

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUse intialization time for sort order
David Zeuthen [Mon, 15 Aug 2011 15:27:36 +0000 (11:27 -0400)]
Use intialization time for sort order

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAdd a sorting key for drives
David Zeuthen [Mon, 15 Aug 2011 14:57:29 +0000 (10:57 -0400)]
Add a sorting key for drives

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoFix drive lookup logic for partitions
David Zeuthen [Mon, 15 Aug 2011 07:58:22 +0000 (03:58 -0400)]
Fix drive lookup logic for partitions

Commit 609fcd3515942140c14561e516923af70a6d4128 accidentally broke
setting the BlockDevice:Drive for partitions. Fix it.

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAssociate dm-multipath devices with the correct drive
David Zeuthen [Sat, 13 Aug 2011 16:02:39 +0000 (12:02 -0400)]
Associate dm-multipath devices with the correct drive

http://people.freedesktop.org/~david/palimpsest-multipath.png

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoFix drive lookup logic
David Zeuthen [Sat, 13 Aug 2011 16:00:34 +0000 (12:00 -0400)]
Fix drive lookup logic

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoDon't leak fd while enumerating directories
David Zeuthen [Sat, 13 Aug 2011 15:59:02 +0000 (11:59 -0400)]
Don't leak fd while enumerating directories

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAdd work-around to identify firewire devices without serial/wwn as drives
David Zeuthen [Fri, 12 Aug 2011 19:56:41 +0000 (15:56 -0400)]
Add work-around to identify firewire devices without serial/wwn as drives

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdate docs
David Zeuthen [Fri, 12 Aug 2011 18:11:01 +0000 (14:11 -0400)]
Update docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUse /dev/mapper/$DM_NAME as fallback, if available
David Zeuthen [Fri, 12 Aug 2011 18:04:44 +0000 (14:04 -0400)]
Use /dev/mapper/$DM_NAME as fallback, if available

This ensures that PreferredDeviceFile will be /dev/mapper/sd_card
instead of e.g. /dev/dm-3 if DM_NAME is "sd_card".

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoSupport /etc/crypttab for unlocking and locking LUKS devices
David Zeuthen [Fri, 12 Aug 2011 17:47:57 +0000 (13:47 -0400)]
Support /etc/crypttab for unlocking and locking LUKS devices

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoAllow mounting/unmounting fstab devices without the 'user' or 'users' option
David Zeuthen [Fri, 12 Aug 2011 16:40:17 +0000 (12:40 -0400)]
Allow mounting/unmounting fstab devices without the 'user' or 'users' option

... by introducing a new org.freedesktop.udisks2.filesystem-nonuser-fstab
polkit action.

http://people.freedesktop.org/~david/palimpsest-nonuser-fstab-devices.png

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoRevert "Use -T for eject(1) on optical drives"
David Zeuthen [Fri, 12 Aug 2011 14:09:54 +0000 (10:09 -0400)]
Revert "Use -T for eject(1) on optical drives"

This causes failures on my optical drive that can't close its tray. We
can probably do this by adding a Drive:CloseTray() method as well as a
Drive:TrayIsOpen property...

This reverts commit 51255b864c09390a96f49ed14a70916eb75b6456.