platform/upstream/udisks2.git
13 years agoRework UDISKS_* udev properties
David Zeuthen [Tue, 19 Jul 2011 18:27:08 +0000 (14:27 -0400)]
Rework UDISKS_* udev properties

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove properties around
David Zeuthen [Tue, 19 Jul 2011 15:35:48 +0000 (11:35 -0400)]
Move properties around

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate man pages
David Zeuthen [Tue, 19 Jul 2011 14:55:11 +0000 (10:55 -0400)]
Update man pages

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRework polkit actions
David Zeuthen [Tue, 19 Jul 2011 14:20:42 +0000 (10:20 -0400)]
Rework polkit actions

In particular, make sure that managing swapspace always requires
authentication as e.g. passwords may be paged onto the swap device.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoSlightly change wording in cleanup message
David Zeuthen [Tue, 19 Jul 2011 12:42:07 +0000 (08:42 -0400)]
Slightly change wording in cleanup message

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoudisks(1): Mention lock/unlock commands in help output
David Zeuthen [Mon, 18 Jul 2011 21:35:02 +0000 (17:35 -0400)]
udisks(1): Mention lock/unlock commands in help output

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd unlock/lock commands to udisksctl(1)
David Zeuthen [Mon, 18 Jul 2011 21:32:55 +0000 (17:32 -0400)]
Add unlock/lock commands to udisksctl(1)

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFind device by dev_t, not name
David Zeuthen [Mon, 18 Jul 2011 20:53:58 +0000 (16:53 -0400)]
Find device by dev_t, not name

This is important especially since udev no longer includes
/dev/block/%d:%d in its DEVLINKS variable (it's implicit).

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate polkit actions
David Zeuthen [Mon, 18 Jul 2011 20:37:26 +0000 (16:37 -0400)]
Update polkit actions

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMinor fixes to the cleanup logic
David Zeuthen [Mon, 18 Jul 2011 18:06:24 +0000 (14:06 -0400)]
Minor fixes to the cleanup logic

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDon't log location and function to syslog
David Zeuthen [Mon, 18 Jul 2011 17:52:57 +0000 (13:52 -0400)]
Don't log location and function to syslog

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAvoid trailing semicolon in macros
David Zeuthen [Thu, 14 Jul 2011 21:27:41 +0000 (17:27 -0400)]
Avoid trailing semicolon in macros

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoImprove UDisksCleanup docs
David Zeuthen [Thu, 14 Jul 2011 20:59:26 +0000 (16:59 -0400)]
Improve UDisksCleanup docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoClean up unlocked LUKS devices on device removal
David Zeuthen [Thu, 14 Jul 2011 18:42:28 +0000 (14:42 -0400)]
Clean up unlocked LUKS devices on device removal

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd new cleanup object
David Zeuthen [Wed, 13 Jul 2011 18:58:17 +0000 (14:58 -0400)]
Add new cleanup object

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd locking and caching to persistent store
David Zeuthen [Sat, 25 Jun 2011 15:51:39 +0000 (11:51 -0400)]
Add locking and caching to persistent store

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove mounted-fs functionaliy to UDisksDaemon class
David Zeuthen [Fri, 24 Jun 2011 19:48:02 +0000 (15:48 -0400)]
Move mounted-fs functionaliy to UDisksDaemon class

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove persistent store location
David Zeuthen [Fri, 24 Jun 2011 19:06:56 +0000 (15:06 -0400)]
Move persistent store location

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd .Encrypted interface with Unlock() and Lock() methods
David Zeuthen [Wed, 22 Jun 2011 19:09:15 +0000 (15:09 -0400)]
Add .Encrypted interface with Unlock() and Lock() methods

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse a{sv} for options instead of just as
David Zeuthen [Fri, 17 Jun 2011 15:55:19 +0000 (11:55 -0400)]
Use a{sv} for options instead of just as

It's much more future-proof to do it this way.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse udisksd, not udisks, as the name in syslog
David Zeuthen [Thu, 16 Jun 2011 20:14:11 +0000 (16:14 -0400)]
Use udisksd, not udisks, as the name in syslog

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate license and copyright headers
David Zeuthen [Thu, 16 Jun 2011 19:54:24 +0000 (15:54 -0400)]
Update license and copyright headers

No big changes, basically we just want to convey that the library is
LGPLv2+ and everything else is GPLv2+. If there is any doubt that this
is the intention, this commit can be used to set the record straight.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd better logging routines
David Zeuthen [Thu, 16 Jun 2011 19:43:27 +0000 (15:43 -0400)]
Add better logging routines

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMake error output prettier
David Zeuthen [Thu, 16 Jun 2011 18:28:19 +0000 (14:28 -0400)]
Make error output prettier

No need to mention both stdout and stderror unless both are non-empty.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove SetLabel() method from BlockDevice to Filesystem interface
David Zeuthen [Thu, 16 Jun 2011 17:36:18 +0000 (13:36 -0400)]
Move SetLabel() method from BlockDevice to Filesystem interface

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse g_unix_signal_add_watch_full() instead of own GPosixSignal
David Zeuthen [Thu, 16 Jun 2011 17:09:20 +0000 (13:09 -0400)]
Use g_unix_signal_add_watch_full() instead of own GPosixSignal

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRemove configuration-item interface and the fstab provider implementing this
David Zeuthen [Thu, 16 Jun 2011 16:46:59 +0000 (12:46 -0400)]
Remove configuration-item interface and the fstab provider implementing this

Was never really implemented and is easier to implement in another
way.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate docs
David Zeuthen [Thu, 16 Jun 2011 16:42:05 +0000 (12:42 -0400)]
Update docs

100% doc coverage now.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRename Lun interface to Drive
David Zeuthen [Wed, 15 Jun 2011 16:55:56 +0000 (12:55 -0400)]
Rename Lun interface to Drive

The term "Lun" (Logical Unit Number) is too abstract / overloaded for
what we are trying to convey. Drive is a lot closer so rename it to
that.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRemove iSCSI bits for now
David Zeuthen [Wed, 15 Jun 2011 15:47:38 +0000 (11:47 -0400)]
Remove iSCSI bits for now

Will add this back later.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd WIP iSCSI patches
David Zeuthen [Wed, 15 Jun 2011 15:30:05 +0000 (11:30 -0400)]
Add WIP iSCSI patches

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGet info via iscsiadm(8), not by parsing private data in /var/lib/iscsi
David Zeuthen [Wed, 25 May 2011 16:21:44 +0000 (12:21 -0400)]
Get info via iscsiadm(8), not by parsing private data in /var/lib/iscsi

Also make it work for the case where we don't know the tpgt for the
configured target.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoCatch up with latest gdbus-codegen(1) changes
David Zeuthen [Mon, 23 May 2011 21:59:40 +0000 (17:59 -0400)]
Catch up with latest gdbus-codegen(1) changes

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd introspection bits for libudisks2 and a small pygi example
David Zeuthen [Sat, 16 Apr 2011 18:54:12 +0000 (14:54 -0400)]
Add introspection bits for libudisks2 and a small pygi example

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoCatch up with s/Stub/Skeleton/ rename in GLib's gdbus-codegen branch
David Zeuthen [Wed, 13 Apr 2011 20:35:19 +0000 (16:35 -0400)]
Catch up with s/Stub/Skeleton/ rename in GLib's gdbus-codegen branch

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse GLib's gdbus-codegen branch for now
David Zeuthen [Wed, 13 Apr 2011 01:06:21 +0000 (21:06 -0400)]
Use GLib's gdbus-codegen branch for now

This will get merged onto GLib master in the near future.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoNuke interface org.freedesktop.UDisks2.LinuxSysfsDevice
David Zeuthen [Mon, 4 Apr 2011 19:19:55 +0000 (15:19 -0400)]
Nuke interface org.freedesktop.UDisks2.LinuxSysfsDevice

There's no need for this interface. Clients can get the device file
themselves and listen for uevents via libgudev1 or similar.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse new gdbus-codegen(1) facility for generating D-Bus docs
David Zeuthen [Mon, 4 Apr 2011 18:22:46 +0000 (14:22 -0400)]
Use new gdbus-codegen(1) facility for generating D-Bus docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoProperly name types header file for daemon
David Zeuthen [Wed, 30 Mar 2011 19:36:35 +0000 (15:36 -0400)]
Properly name types header file for daemon

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse intltool to generate merged .policy file
David Zeuthen [Wed, 30 Mar 2011 19:09:51 +0000 (15:09 -0400)]
Use intltool to generate merged .policy file

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoImplement Swapspace's Start() and Stop() method
David Zeuthen [Wed, 30 Mar 2011 19:02:46 +0000 (15:02 -0400)]
Implement Swapspace's Start() and Stop() method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd org.freedesktop.UDisks2.Swapspace interface
David Zeuthen [Wed, 30 Mar 2011 17:46:06 +0000 (13:46 -0400)]
Add org.freedesktop.UDisks2.Swapspace interface

Whether an swap device is in use or not, can be tracked via the
:Active property. A swap device can be activated or deactivated with
the Start() and Stop() methods.

For now, Start() and Stop() are not actually hooked up.

Implementation-wise, monitoring /proc/swaps requires this patch

 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842

which is in Linux 2.6.38 or later.

Example:

 $ udisksctl monitor
 Monitoring the udisks daemon. Press Ctrl+C to exit.
 13:49:08.441: The udisks-daemon is running (name-owner :1.315).
 13:49:11.720: /org/freedesktop/UDisks2/block_devices/sda3: org.freedesktop.UDisks2.Swapspace: Properties Changed
   Active:               false
 13:49:11.746: /org/freedesktop/UDisks2/block_devices/sda3: org.freedesktop.UDisks2.LinuxSysfsDevice::UEvent (b'change',)
 13:49:15.310: /org/freedesktop/UDisks2/block_devices/sda3: org.freedesktop.UDisks2.Swapspace: Properties Changed
   Active:               true

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoSet Lun:ConnectionBus for firewire drives
David Zeuthen [Wed, 30 Mar 2011 14:34:58 +0000 (10:34 -0400)]
Set Lun:ConnectionBus for firewire drives

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDon't probe the LUN for information
David Zeuthen [Wed, 30 Mar 2011 11:32:37 +0000 (07:32 -0400)]
Don't probe the LUN for information

It's no longer needed since we now use the block device (not the LUN
scsi_device) for tracking LUNs.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoPrint better warning when unable to find iscsi_session device
David Zeuthen [Wed, 30 Mar 2011 11:21:58 +0000 (07:21 -0400)]
Print better warning when unable to find iscsi_session device

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse persistent_address sysfs file, not address, for iscsi connections
David Zeuthen [Wed, 30 Mar 2011 11:20:01 +0000 (07:20 -0400)]
Use persistent_address sysfs file, not address, for iscsi connections

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd Lun:ConnectionBus property and use it in udisks_util_get_lun_info()
David Zeuthen [Tue, 29 Mar 2011 22:20:05 +0000 (18:20 -0400)]
Add Lun:ConnectionBus property and use it in udisks_util_get_lun_info()

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoReimplement udisks_util_get_lun_info()
David Zeuthen [Tue, 29 Mar 2011 21:55:09 +0000 (17:55 -0400)]
Reimplement udisks_util_get_lun_info()

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoActually use WARN_CFLAGS
David Zeuthen [Tue, 29 Mar 2011 21:51:45 +0000 (17:51 -0400)]
Actually use WARN_CFLAGS

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoSpecify behavior of udisks_util_get_lun_info()
David Zeuthen [Tue, 29 Mar 2011 18:22:44 +0000 (14:22 -0400)]
Specify behavior of udisks_util_get_lun_info()

We still need to actually implement this behavior - most of it can be
lifted from gnome-disk-utility....

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoPut files with translatable strings in POTFILES.in, not POTFILES.skip
David Zeuthen [Tue, 29 Mar 2011 17:24:01 +0000 (13:24 -0400)]
Put files with translatable strings in POTFILES.in, not POTFILES.skip

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix 'make distcheck'
David Zeuthen [Tue, 29 Mar 2011 16:43:55 +0000 (12:43 -0400)]
Fix 'make distcheck'

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoNuke blackbox tests for now
David Zeuthen [Tue, 29 Mar 2011 16:29:52 +0000 (12:29 -0400)]
Nuke blackbox tests for now

They don't work because the udisks2 interfaces are different from the
old ones - better to add the tests back when they are ported to the
new interface.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRework autotooling and setup i18n
David Zeuthen [Tue, 29 Mar 2011 16:27:24 +0000 (12:27 -0400)]
Rework autotooling and setup i18n

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoPreliminary support for iSCSI targets
David Zeuthen [Fri, 25 Mar 2011 22:17:39 +0000 (18:17 -0400)]
Preliminary support for iSCSI targets

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate signal names
David Zeuthen [Sun, 20 Mar 2011 17:26:26 +0000 (13:26 -0400)]
Update signal names

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate docs
David Zeuthen [Fri, 18 Mar 2011 19:26:40 +0000 (15:26 -0400)]
Update docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFactor out filesystem to sep D-Bus interface and unify polkit interaction
David Zeuthen [Fri, 18 Mar 2011 19:21:53 +0000 (15:21 -0400)]
Factor out filesystem to sep D-Bus interface and unify polkit interaction

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse new type-safe CALLBACK macros
David Zeuthen [Fri, 18 Mar 2011 16:46:35 +0000 (12:46 -0400)]
Use new type-safe CALLBACK macros

Incidently, this actually found a bug - I was missing the user_data
parameters of the callback functions. So YAY!

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate to latest gdbus-codegen changes
David Zeuthen [Thu, 17 Mar 2011 18:33:11 +0000 (14:33 -0400)]
Update to latest gdbus-codegen changes

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdate to latest GDBus
David Zeuthen [Wed, 16 Mar 2011 19:45:02 +0000 (15:45 -0400)]
Update to latest GDBus

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoExport udisks_util_get_media_compat_for_display()
David Zeuthen [Mon, 14 Mar 2011 21:24:52 +0000 (17:24 -0400)]
Export udisks_util_get_media_compat_for_display()

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoCope with the fact that ID_FS_VERSION is udev encoded
David Zeuthen [Mon, 14 Mar 2011 11:13:24 +0000 (07:13 -0400)]
Cope with the fact that ID_FS_VERSION is udev encoded

For example, LVM2 PVs have version LVM2\x20001 which should be
presented as "LVM2 001".

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoCapitalize short filesystem names
David Zeuthen [Mon, 14 Mar 2011 10:59:46 +0000 (06:59 -0400)]
Capitalize short filesystem names

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix copy-paste error for short filesystem name
David Zeuthen [Mon, 14 Mar 2011 10:57:26 +0000 (06:57 -0400)]
Fix copy-paste error for short filesystem name

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoShow 'Unknown' for unknown volume, not a blank string
David Zeuthen [Mon, 14 Mar 2011 10:55:51 +0000 (06:55 -0400)]
Show 'Unknown' for unknown volume, not a blank string

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse /dev/mapper/vg-FOO-lv-BAR instead of /dev/dm-0 as PreferredDevice for LVM2
David Zeuthen [Mon, 14 Mar 2011 10:44:07 +0000 (06:44 -0400)]
Use /dev/mapper/vg-FOO-lv-BAR instead of /dev/dm-0 as PreferredDevice for LVM2

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix typo so fs labels on mounted filesystems can be changed
David Zeuthen [Sun, 13 Mar 2011 20:49:54 +0000 (16:49 -0400)]
Fix typo so fs labels on mounted filesystems can be changed

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd FilesystemSetLabel method
David Zeuthen [Sun, 13 Mar 2011 19:56:44 +0000 (15:56 -0400)]
Add FilesystemSetLabel method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoNuke helper option for now
David Zeuthen [Sun, 13 Mar 2011 18:43:24 +0000 (14:43 -0400)]
Nuke helper option for now

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix warnings triggered by gcc 4.6
David Zeuthen [Sun, 13 Mar 2011 18:12:42 +0000 (14:12 -0400)]
Fix warnings triggered by gcc 4.6

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd udisks_util_get_part_types_for_scheme() util function
David Zeuthen [Sun, 13 Mar 2011 16:03:50 +0000 (12:03 -0400)]
Add udisks_util_get_part_types_for_scheme() util function

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd functions to get human-readable strings for partitions and filesystems
David Zeuthen [Fri, 11 Mar 2011 23:34:21 +0000 (18:34 -0500)]
Add functions to get human-readable strings for partitions and filesystems

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoExport partition label and UUID
David Zeuthen [Thu, 10 Mar 2011 22:57:54 +0000 (17:57 -0500)]
Export partition label and UUID

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd a CryptoBackingDevice property on BlockDevice for dm-crypt
David Zeuthen [Thu, 10 Mar 2011 20:18:37 +0000 (15:18 -0500)]
Add a CryptoBackingDevice property on BlockDevice for dm-crypt

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMake the Size property on BlockDevice be 0 if no media is available
David Zeuthen [Thu, 10 Mar 2011 17:19:04 +0000 (12:19 -0500)]
Make the Size property on BlockDevice be 0 if no media is available

Also unify code for determing device size for Lun and BlockDevice.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd PartEntryNumber attribute to the BlockDevice interface
David Zeuthen [Thu, 10 Mar 2011 17:18:53 +0000 (12:18 -0500)]
Add PartEntryNumber attribute to the BlockDevice interface

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd utility function to get info about a LUN
David Zeuthen [Wed, 9 Mar 2011 17:40:45 +0000 (12:40 -0500)]
Add utility function to get info about a LUN

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd a Size property to the Lun interface
David Zeuthen [Tue, 8 Mar 2011 22:43:16 +0000 (17:43 -0500)]
Add a Size property to the Lun interface

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd LoopBackingFile property to BlockDevice
David Zeuthen [Tue, 8 Mar 2011 19:24:26 +0000 (14:24 -0500)]
Add LoopBackingFile property to BlockDevice

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDemote complaint about no serial/wwn on block device from warning to debug
David Zeuthen [Tue, 8 Mar 2011 18:16:45 +0000 (13:16 -0500)]
Demote complaint about no serial/wwn on block device from warning to debug

Now that we're using block devices instead of scsi devices for this,
it's far more common to run into block devices without any serial
number or WWN.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMinor updates
David Zeuthen [Tue, 8 Mar 2011 18:10:01 +0000 (13:10 -0500)]
Minor updates

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRemove TODO
David Zeuthen [Sun, 6 Mar 2011 15:08:30 +0000 (10:08 -0500)]
Remove TODO

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix PolicyKit policy file
David Zeuthen [Sun, 6 Mar 2011 15:01:03 +0000 (10:01 -0500)]
Fix PolicyKit policy file

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd UDisksClient
David Zeuthen [Sun, 6 Mar 2011 13:31:42 +0000 (08:31 -0500)]
Add UDisksClient

This class will be used for all the common things that clients such as
udisksctl(1) and palimpsest will need to do.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoImprove how data is collected in the fallback branch for LUN
David Zeuthen [Sat, 5 Mar 2011 15:50:03 +0000 (10:50 -0500)]
Improve how data is collected in the fallback branch for LUN

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUse block instead of scsi devices for LUNs
David Zeuthen [Sat, 5 Mar 2011 15:44:50 +0000 (10:44 -0500)]
Use block instead of scsi devices for LUNs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoActually make the libudisks2 library work for 3rd party apps
David Zeuthen [Fri, 4 Mar 2011 18:13:37 +0000 (13:13 -0500)]
Actually make the libudisks2 library work for 3rd party apps

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRename Drive to LUN
David Zeuthen [Wed, 2 Mar 2011 19:56:25 +0000 (14:56 -0500)]
Rename Drive to LUN

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoHandle removing a drive correctly
David Zeuthen [Wed, 2 Mar 2011 19:42:45 +0000 (14:42 -0500)]
Handle removing a drive correctly

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDon't show partitions in udisksctl status output
David Zeuthen [Thu, 17 Feb 2011 19:22:22 +0000 (14:22 -0500)]
Don't show partitions in udisksctl status output

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRework how serial numbers are handled
David Zeuthen [Thu, 17 Feb 2011 19:00:28 +0000 (14:00 -0500)]
Rework how serial numbers are handled

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd a PreferredDevice property
David Zeuthen [Thu, 17 Feb 2011 16:36:14 +0000 (11:36 -0500)]
Add a PreferredDevice property

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix spelling of property names
David Zeuthen [Thu, 17 Feb 2011 16:19:06 +0000 (11:19 -0500)]
Fix spelling of property names

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd properties for partition tables and entries
David Zeuthen [Thu, 17 Feb 2011 15:57:13 +0000 (10:57 -0500)]
Add properties for partition tables and entries

Right now we rely on the existing UDISKS_PARTITION* properties from an
existing udisks 1.x installation. Long-term we are going to switch to
the blkid stuff.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix up docs
David Zeuthen [Wed, 16 Feb 2011 20:30:00 +0000 (15:30 -0500)]
Fix up docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove contents of BlockDevice.Probed and Filesystem into the BlockDevice iface
David Zeuthen [Wed, 16 Feb 2011 20:26:12 +0000 (15:26 -0500)]
Move contents of BlockDevice.Probed and Filesystem into the BlockDevice iface

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAvoid multiple Drive objects with the same VPD
David Zeuthen [Wed, 16 Feb 2011 18:46:07 +0000 (13:46 -0500)]
Avoid multiple Drive objects with the same VPD

So the way this works is that with multiple paths, more than one block
device will point to the Drive in question.

$ ./udisksctl status
PORT  MODEL                     REVISION  SERIAL               BLOCK
--------------------------------------------------------------------------------
      HP LOGICAL VOLUME         3.00      5001438008F61790     sda sda1 sda2
      SEAGATE ST3300657SS       0006      3SJ1QNMQ00009052NECM sdan sdl
      SEAGATE ST3300657SS       0006      3SJ1RFP900009051HZ5S sdaf sdd
      SEAGATE ST3300657SS       0006      3SJ1RJS700009050VYEA sdal sdj
      SEAGATE ST3300657SS       0006      3SJ1RPFJ00009052BZ10 sdah sdf
      SEAGATE ST3300657SS       0006      3SJ1RSJC00009052MWTB sdam sdk
      SEAGATE ST3300657SS       0006      3SJ1RWZ100009101T12H sdai sdg
      SEAGATE ST3300657SS       0006      3SJ1S3NE00009101TB5Y sdao sdm
      SEAGATE ST3300657SS       0006      3SJ1S40K00009101T1XU sdak sdi
      SEAGATE ST3300657SS       0006      3SJ1S4MH00009052RG6Z sdae sdc
      SEAGATE ST3300657SS       0006      3SJ1S66L00009052QGZA sdag sde
      SEAGATE ST3300657SS       0006      3SJ1S7C500009052RKPP sdaj sdh
      SEAGATE ST3300657SS       0006      3SJ1S7K600009051M0CE sdad sdb
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30010853      sds
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30012560      sdn
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30014347      sdac
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30021345      sdaa
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30024753      sdt
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30025874      sdw
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30030732      sdr
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30031826      sdv
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30032003      sdz
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30039741      sdp
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30063724      sdx
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30064055      sdq
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30064486      sdy
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30064749      sdo
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30065104      sdu
      WDC WD1002FAEX-00Y9A0     01.01V10  WD-WCAW30067287      sdab

Still need to hook up support for dm-multipath such that we get e.g.

      SEAGATE ST3300657SS       0006      3SJ1QNMQ00009052NECM sdan sdl mpatha

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDrop Controller, AtaDrive and ScsiDrive interfaces (for now)
David Zeuthen [Wed, 16 Feb 2011 17:04:15 +0000 (12:04 -0500)]
Drop Controller, AtaDrive and ScsiDrive interfaces (for now)

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMove object path and interface names to the UDisks2 name-space
David Zeuthen [Wed, 16 Feb 2011 16:26:05 +0000 (11:26 -0500)]
Move object path and interface names to the UDisks2 name-space

Signed-off-by: David Zeuthen <davidz@redhat.com>