platform/upstream/udisks2.git
11 years agoAdd Block:Id property
David Zeuthen [Sat, 24 Nov 2012 19:20:19 +0000 (14:20 -0500)]
Add Block:Id property

This persistent and unique id is useful for a bunch of things, for
example Disks' benchmark dialog can use it as the filename for saving
benchmarking data for a block device (Disks is currently deriving the
filename from looking at symlinks).

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoEnsure HintAuto is FALSE for PC floppy drives
David Zeuthen [Thu, 22 Nov 2012 16:28:34 +0000 (11:28 -0500)]
Ensure HintAuto is FALSE for PC floppy drives

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate what symbolic icons to use
David Zeuthen [Tue, 20 Nov 2012 21:20:36 +0000 (16:20 -0500)]
Update what symbolic icons to use

It's not appropriate to use media-removable-symbolic for floppy or
flash media since that icon looks like a thumb drive. Use
media-floppy-symbolic and media-flash-symbolic instead.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMake UDisksObjectInfo a GObject and hide its struct
David Zeuthen [Tue, 20 Nov 2012 19:20:15 +0000 (14:20 -0500)]
Make UDisksObjectInfo a GObject and hide its struct

Provide getter methods instead. This breaks library ABI (see
gnome-disk-utility for the required changes) but that's fine since
we're on an unstable branch.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksObjectInfo: Change format of one_liner
David Zeuthen [Tue, 20 Nov 2012 18:17:07 +0000 (13:17 -0500)]
UDisksObjectInfo: Change format of one_liner

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix grammar
David Zeuthen [Tue, 20 Nov 2012 17:26:00 +0000 (12:26 -0500)]
Fix grammar

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd missing since tag to newly added Drive.Ata.SmartSetEnabled() method
David Zeuthen [Tue, 20 Nov 2012 17:19:51 +0000 (12:19 -0500)]
Add missing since tag to newly added Drive.Ata.SmartSetEnabled() method

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate SMART data after enabling SMART
David Zeuthen [Tue, 20 Nov 2012 16:51:06 +0000 (11:51 -0500)]
Update SMART data after enabling SMART

Also ensure that updates are done atomically and sent out before the
SmartSetEnabled() method returns.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksLinuxDevice: add a reprobe_sync() method
David Zeuthen [Tue, 20 Nov 2012 16:50:38 +0000 (11:50 -0500)]
UDisksLinuxDevice: add a reprobe_sync() method

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix up docs
David Zeuthen [Mon, 19 Nov 2012 22:09:46 +0000 (17:09 -0500)]
Fix up docs

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd Drive.Ata.SmartSetEnabled() method
David Zeuthen [Mon, 19 Nov 2012 20:33:02 +0000 (15:33 -0500)]
Add Drive.Ata.SmartSetEnabled() method

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd a Drive.PowerOff() method
David Zeuthen [Mon, 19 Nov 2012 03:08:54 +0000 (22:08 -0500)]
Add a Drive.PowerOff() method

Right now we only support devices connected via USB but in the future
we can add support for other interconnects.

Also, since this operation may affect multiple drives, we also
introduce a Drive:SiblingId property so applications can do the right
thing.

http://people.freedesktop.org/~david/gnome-disks-power-off-drive-1.png
http://people.freedesktop.org/~david/gnome-disks-power-off-drive-2.png
http://people.freedesktop.org/~david/gnome-disks-power-off-drive-3.png

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd support for creating UDF filesystems using mkudffs(8)
David Zeuthen [Mon, 12 Nov 2012 04:59:46 +0000 (23:59 -0500)]
Add support for creating UDF filesystems using mkudffs(8)

This was requested in GNOME bug 633655.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoBlock.Format: add @update-partition-type option
David Zeuthen [Tue, 6 Nov 2012 17:11:25 +0000 (12:11 -0500)]
Block.Format: add @update-partition-type option

If this option is set to TRUE, we'll set the _natural_ partition type
for the requested filesystem, if one is available. For example, if
formatting a GPT partition with a FAT filesystem, the Microsoft Basic
Data partition type will be chosen; similar, if formatting a DOS
partition with a Ext4 filesystem then partition type 0x83 is chosen.

This feature was requested here

 https://bugzilla.gnome.org/show_bug.cgi?id=685871

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUse gathered IDENTIFY DATA as primary way of identifying ATA devices
David Zeuthen [Mon, 5 Nov 2012 19:10:16 +0000 (14:10 -0500)]
Use gathered IDENTIFY DATA as primary way of identifying ATA devices

IOW, don't rely on ata_id to set the ATA_ID udev property.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoStop relying on ata_id to set ID_ATA_ROTATION_RATE_RPM
David Zeuthen [Mon, 5 Nov 2012 19:04:37 +0000 (14:04 -0500)]
Stop relying on ata_id to set ID_ATA_ROTATION_RATE_RPM

Get this directly from the IDENTIFY DATA itself.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoStop relying on ata_id to set ID_ATA_FEATURE_SET_SECURITY*
David Zeuthen [Mon, 5 Nov 2012 18:57:32 +0000 (13:57 -0500)]
Stop relying on ata_id to set ID_ATA_FEATURE_SET_SECURITY*

Get this directly from the IDENTIFY DATA itself.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDon't set AamVendorRecommendedValue unless AAM is actually supported
David Zeuthen [Mon, 5 Nov 2012 18:46:41 +0000 (13:46 -0500)]
Don't set AamVendorRecommendedValue unless AAM is actually supported

Otherwise it may contain junk.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoStop relying on ata_id to set ID_ATA_FEATURE_SET_{PM,APM,AAM}*
David Zeuthen [Mon, 5 Nov 2012 18:42:00 +0000 (13:42 -0500)]
Stop relying on ata_id to set ID_ATA_FEATURE_SET_{PM,APM,AAM}*

Get this directly from the IDENTIFY DATA itself.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoStop relying on ata_id to set ID_ATA_FEATURE_SET_SMART{,_ENABLED}
David Zeuthen [Mon, 5 Nov 2012 18:30:18 +0000 (13:30 -0500)]
Stop relying on ata_id to set ID_ATA_FEATURE_SET_SMART{,_ENABLED}

Get this directly from the IDENTIFY DATA itself.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd udisks_ata_identify_get_word() utility function
David Zeuthen [Mon, 5 Nov 2012 18:29:14 +0000 (13:29 -0500)]
Add udisks_ata_identify_get_word() utility function

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd logging statements so it's possible to pin-point probing time
David Zeuthen [Thu, 25 Oct 2012 23:15:31 +0000 (19:15 -0400)]
Add logging statements so it's possible to pin-point probing time

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksLinuxDevice: Don't include the parent_instance member in the docs
David Zeuthen [Thu, 25 Oct 2012 15:33:20 +0000 (11:33 -0400)]
UDisksLinuxDevice: Don't include the parent_instance member in the docs

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoForgot to add files
David Zeuthen [Wed, 24 Oct 2012 18:54:28 +0000 (14:54 -0400)]
Forgot to add files

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoIntroduce UDisksLinuxDevice as a replacement for GUdevDevice
David Zeuthen [Wed, 24 Oct 2012 17:40:38 +0000 (13:40 -0400)]
Introduce UDisksLinuxDevice as a replacement for GUdevDevice

This is essentially a GUdevDevice but with extra information such as
the probed ATA IDENTIFY data and, in the future, anything else we
might need.

The big idea here is that we want to depend _less_ on udev for
peripheral things that doesn't make sense to store in the udev
database, such as the properties in [1]. The win here is

 a. We can simplify ata_id somewhat - it still needs to extract serial
    numbers, WWNs etc. (because those are needed for symlinks in the
    /dev/disk/by-* hierarchy) but it does not need to extract and
    print what is in e.g. [1].

 b. If we need information in udisks from e.g. the ATA IDENTIFY data
    we don't need to add it to ata_id (or scsi_id or whatever), then
    wait for a systemd release and then instruct distributors to
    properly handle the dependency - instead, we can just access the
    IDENTIFY data ourselves. Much simpler and less error prone.

Since probing is synchronous, we create a thread for this and whenever
there's an uevent we push a new request onto a work queue. The probing
thread will handle incoming requests sequentially (in the future we
could have a pool of worker threads and run things in parallel) and
pop the results back to the main thread, also sequentially.

The only probing we have right now is for IDENTIFY DEVICE and IDENTIFY
PACKET DEVICE for ATA disks. We can add more in the future.

Note that this patch doesn't actually achieve b. yet - upcoming
patches will move from reading udev properties (such as looking at the
value of ID_ATA_FEATURE_SET_PM) to extracting this from the IDENTIFY
data itself.

[1] :
 # udevadm info -q all -n /dev/sda|grep ID_ATA_
 E: ID_ATA_DOWNLOAD_MICROCODE=1
 E: ID_ATA_FEATURE_SET_HPA=1
 E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
 E: ID_ATA_FEATURE_SET_PM=1
 E: ID_ATA_FEATURE_SET_PM_ENABLED=1
 E: ID_ATA_FEATURE_SET_SECURITY=1
 E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
 E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=2
 E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=2
 E: ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
 E: ID_ATA_FEATURE_SET_SMART=1
 E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
 E: ID_ATA_ROTATION_RATE_RPM=0
 E: ID_ATA_SATA=1
 E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
 E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
 E: ID_ATA_WRITE_CACHE=1
 E: ID_ATA_WRITE_CACHE_ENABLED=1

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFactor out ATA routines
David Zeuthen [Tue, 23 Oct 2012 18:25:13 +0000 (14:25 -0400)]
Factor out ATA routines

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUse the right device file UDisksObjectInfo.one_liner for a partition of a drive
David Zeuthen [Wed, 17 Oct 2012 16:20:08 +0000 (12:20 -0400)]
Use the right device file UDisksObjectInfo.one_liner for a partition of a drive

E.g. use /dev/sdb1, not /dev/sdb

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDon't count /dev/md* devices with bogus UUIDs as MD-RAID arrays
David Zeuthen [Tue, 16 Oct 2012 15:50:55 +0000 (11:50 -0400)]
Don't count /dev/md* devices with bogus UUIDs as MD-RAID arrays

For example, if you use the FAULTY personality there is no UUID and we
shouldn't present the device as a RAID array as it really isn't one.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoNuke debug spew
David Zeuthen [Tue, 16 Oct 2012 15:44:04 +0000 (11:44 -0400)]
Nuke debug spew

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksObjectInfo: add one_liner field
David Zeuthen [Tue, 16 Oct 2012 15:41:21 +0000 (11:41 -0400)]
UDisksObjectInfo: add one_liner field

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoOnly use #pragma GCC diagnostic on GCC >= 4.6
David Zeuthen [Sat, 13 Oct 2012 09:58:48 +0000 (05:58 -0400)]
Only use #pragma GCC diagnostic on GCC >= 4.6

https://bugs.freedesktop.org/show_bug.cgi?id=52614

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd support for option 'no-block' in the Block.Format() method
David Zeuthen [Sat, 13 Oct 2012 09:36:56 +0000 (05:36 -0400)]
Add support for option 'no-block' in the Block.Format() method

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoRevert "Serialize authorization checks"
David Zeuthen [Sat, 13 Oct 2012 09:15:40 +0000 (05:15 -0400)]
Revert "Serialize authorization checks"

Turns out this is not really a good idea - for example, consider two
users on different seats - if one is slow to authenticate, the other
one will suffer.

This reverts commit cc373db17ac448a6c088f6497a90fe288e560c21.

11 years agoSerialize authorization checks
David Zeuthen [Fri, 12 Oct 2012 21:39:21 +0000 (17:39 -0400)]
Serialize authorization checks

This is useful for e.g. applications that offer UI on multiple disks
at the same time. Without the serialization up to N authentication
dialogs for the same action can be shown.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAlways pass MD devices of the form /dev/mdNNN when assembling RAID arrays
David Zeuthen [Fri, 12 Oct 2012 15:21:10 +0000 (11:21 -0400)]
Always pass MD devices of the form /dev/mdNNN when assembling RAID arrays

This is to be consistent with array creation.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd Manager.MDRaidCreate() method for RAID Array creation
David Zeuthen [Fri, 12 Oct 2012 13:48:49 +0000 (09:48 -0400)]
Add Manager.MDRaidCreate() method for RAID Array creation

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksClient: Add reference to Job:Operation to get_job_description() docs
David Zeuthen [Fri, 12 Oct 2012 13:48:18 +0000 (09:48 -0400)]
UDisksClient: Add reference to Job:Operation to get_job_description() docs

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd missing known jobs for MD-RAID to Job:Description docs
David Zeuthen [Fri, 12 Oct 2012 13:47:02 +0000 (09:47 -0400)]
Add missing known jobs for MD-RAID to Job:Description docs

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd missing known jobs for ATA Secure erase to Job:Description docs
David Zeuthen [Fri, 12 Oct 2012 13:44:53 +0000 (09:44 -0400)]
Add missing known jobs for ATA Secure erase to Job:Description docs

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd translations for eu, fa, hr and sq from Transifix
David Zeuthen [Thu, 4 Oct 2012 20:20:31 +0000 (16:20 -0400)]
Add translations for eu, fa, hr and sq from Transifix

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate POTFILES.in with new source files
David Zeuthen [Thu, 4 Oct 2012 20:18:44 +0000 (16:18 -0400)]
Update POTFILES.in with new source files

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoRemove fa_IR translation
David Zeuthen [Thu, 4 Oct 2012 20:17:08 +0000 (16:17 -0400)]
Remove fa_IR translation

This language code is invalid. Also removed from the udisks transifex instance.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd publish-docs-master target
David Zeuthen [Thu, 4 Oct 2012 19:56:23 +0000 (15:56 -0400)]
Add publish-docs-master target

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate gtk-doc types file
David Zeuthen [Wed, 3 Oct 2012 15:45:07 +0000 (11:45 -0400)]
Update gtk-doc types file

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoInclude docs for MD-RAID implementation details
David Zeuthen [Wed, 3 Oct 2012 15:44:51 +0000 (11:44 -0400)]
Include docs for MD-RAID implementation details

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate gtk-doc sections
David Zeuthen [Wed, 3 Oct 2012 15:32:33 +0000 (11:32 -0400)]
Update gtk-doc sections

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd indexes of deprecated and new-in-2.1 symbols
David Zeuthen [Wed, 3 Oct 2012 14:34:10 +0000 (10:34 -0400)]
Add indexes of deprecated and new-in-2.1 symbols

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoRe-include udisks_client_get_drive_info() in API docs
David Zeuthen [Wed, 3 Oct 2012 14:33:36 +0000 (10:33 -0400)]
Re-include udisks_client_get_drive_info() in API docs

Otherwise we can't tell people that it's deprecated.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUse Deprecated and Since annotations to mark deprecated and new API for 2.1
David Zeuthen [Wed, 3 Oct 2012 14:32:48 +0000 (10:32 -0400)]
Use Deprecated and Since annotations to mark deprecated and new API for 2.1

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUse @since annotations to mark new D-Bus API available 2.1
David Zeuthen [Wed, 3 Oct 2012 14:32:15 +0000 (10:32 -0400)]
Use @since annotations to mark new D-Bus API available 2.1

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMerge branch 'master' into wip/mdraid
David Zeuthen [Wed, 3 Oct 2012 14:12:14 +0000 (10:12 -0400)]
Merge branch 'master' into wip/mdraid

11 years agoStart writing NEWS for 2.0.90
David Zeuthen [Wed, 3 Oct 2012 14:06:13 +0000 (10:06 -0400)]
Start writing NEWS for 2.0.90

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoBump version to 2.0.90
David Zeuthen [Wed, 3 Oct 2012 14:05:59 +0000 (10:05 -0400)]
Bump version to 2.0.90

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoExplain post-release actions in HACKING
David Zeuthen [Wed, 3 Oct 2012 14:03:15 +0000 (10:03 -0400)]
Explain post-release actions in HACKING

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDocument the release process
David Zeuthen [Wed, 3 Oct 2012 13:52:30 +0000 (09:52 -0400)]
Document the release process

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate my email address
David Zeuthen [Wed, 3 Oct 2012 13:33:10 +0000 (09:33 -0400)]
Update my email address

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoPost-release version bump to 2.0.1
David Zeuthen [Tue, 2 Oct 2012 19:32:54 +0000 (15:32 -0400)]
Post-release version bump to 2.0.1

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate NEWS for release
David Zeuthen [Tue, 2 Oct 2012 19:29:52 +0000 (15:29 -0400)]
Update NEWS for release

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUpdate translations from Transifex
David Zeuthen [Tue, 2 Oct 2012 18:03:37 +0000 (14:03 -0400)]
Update translations from Transifex

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd docs for udisks_linux_drive_ata_secure_erase_sync()
David Zeuthen [Tue, 2 Oct 2012 17:58:01 +0000 (13:58 -0400)]
Add docs for udisks_linux_drive_ata_secure_erase_sync()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd docs for udisks_linux_drive_ata_apply_configuration()
David Zeuthen [Tue, 2 Oct 2012 17:50:37 +0000 (13:50 -0400)]
Add docs for udisks_linux_drive_ata_apply_configuration()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoRemove udisks_daemon_util_on_other_seat() from sections.txt
David Zeuthen [Tue, 2 Oct 2012 17:46:25 +0000 (13:46 -0400)]
Remove udisks_daemon_util_on_other_seat() from sections.txt

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_util_file_set_contents()
David Zeuthen [Tue, 2 Oct 2012 17:45:39 +0000 (13:45 -0400)]
Fix docs for udisks_daemon_util_file_set_contents()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_launch_threaded_job()
David Zeuthen [Tue, 2 Oct 2012 17:44:52 +0000 (13:44 -0400)]
Fix docs for udisks_daemon_launch_threaded_job()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_launch_spawned_job_sync()
David Zeuthen [Tue, 2 Oct 2012 17:44:26 +0000 (13:44 -0400)]
Fix docs for udisks_daemon_launch_spawned_job_sync()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_launch_spawned_job()
David Zeuthen [Tue, 2 Oct 2012 17:44:09 +0000 (13:44 -0400)]
Fix docs for udisks_daemon_launch_spawned_job()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_launch_simple_job()
David Zeuthen [Tue, 2 Oct 2012 17:43:44 +0000 (13:43 -0400)]
Fix docs for udisks_daemon_launch_simple_job()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd docs for udisks_base_job_set_auto_estimate()
David Zeuthen [Tue, 2 Oct 2012 17:40:32 +0000 (13:40 -0400)]
Add docs for udisks_base_job_set_auto_estimate()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoAdd docs for udisks_base_job_get_auto_estimate()
David Zeuthen [Tue, 2 Oct 2012 17:40:12 +0000 (13:40 -0400)]
Add docs for udisks_base_job_get_auto_estimate()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix up docs for udisks_daemon_util_file_set_contents()
David Zeuthen [Tue, 2 Oct 2012 17:37:54 +0000 (13:37 -0400)]
Fix up docs for udisks_daemon_util_file_set_contents()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix docs for udisks_daemon_util_on_same_seat()
David Zeuthen [Tue, 2 Oct 2012 17:35:47 +0000 (13:35 -0400)]
Fix docs for udisks_daemon_util_on_same_seat()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: use CDATA for email addresses to avoid them being mangled
David Zeuthen [Tue, 2 Oct 2012 17:29:01 +0000 (13:29 -0400)]
docs: use CDATA for email addresses to avoid them being mangled

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: add some more meta information to the man pages (version, source, manual)
David Zeuthen [Tue, 2 Oct 2012 17:16:46 +0000 (13:16 -0400)]
docs: add some more meta information to the man pages (version, source, manual)

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: Document udisksctl(1)'s status command
David Zeuthen [Tue, 2 Oct 2012 17:01:06 +0000 (13:01 -0400)]
docs: Document udisksctl(1)'s status command

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: Document udisksctl(1)'s info command
David Zeuthen [Tue, 2 Oct 2012 16:58:15 +0000 (12:58 -0400)]
docs: Document udisksctl(1)'s info command

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: update man page dates to "October 2012"
David Zeuthen [Tue, 2 Oct 2012 16:53:47 +0000 (12:53 -0400)]
docs: update man page dates to "October 2012"

In the future we shall update it only in minor releases .0,
e.g. 2.0.0, 2.2.0, 2.4.0 and so on.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: Link to http://www.freedesktop.org/wiki/Software/dbus in udisks(8)
David Zeuthen [Tue, 2 Oct 2012 16:40:23 +0000 (12:40 -0400)]
docs: Link to freedesktop.org/wiki/Software/dbus in udisks(8)

... so it's 100% clear what "system message bus" means.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: Remove "(available online here)" comment in udisks(8) man page
David Zeuthen [Tue, 2 Oct 2012 16:36:44 +0000 (12:36 -0400)]
docs: Remove "(available online here)" comment in udisks(8) man page

We don't do that for other chapters.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agodocs: only reference hdparm(8) at the end of the paragraph
David Zeuthen [Tue, 2 Oct 2012 15:38:10 +0000 (11:38 -0400)]
docs: only reference hdparm(8) at the end of the paragraph

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoBump version number to 2.0.0
David Zeuthen [Fri, 28 Sep 2012 19:05:53 +0000 (15:05 -0400)]
Bump version number to 2.0.0

This is not the release (at least NEWS needs to be updated) but pretty
close. Basically only need to e.g. check that nothing breaks by going
from 1.99.0 to 2.0.0

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDon't require that users define UDISKS_API_IS_SUBJECT_TO_CHANGE
David Zeuthen [Fri, 28 Sep 2012 19:03:04 +0000 (15:03 -0400)]
Don't require that users define UDISKS_API_IS_SUBJECT_TO_CHANGE

We're very close to the 2.0 release (two-point-oh!) so nuke this.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMove bash completion script into /usr/share/bash-completion/completions
David Zeuthen [Fri, 28 Sep 2012 17:58:04 +0000 (13:58 -0400)]
Move bash completion script into /usr/share/bash-completion/completions

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix glaringly wrong documentation for Filesystem.Mount()
David Zeuthen [Fri, 28 Sep 2012 14:53:25 +0000 (10:53 -0400)]
Fix glaringly wrong documentation for Filesystem.Mount()

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMention the right file when complaing about /proc/swaps
David Zeuthen [Thu, 27 Sep 2012 17:16:31 +0000 (13:16 -0400)]
Mention the right file when complaing about /proc/swaps

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMake it work without requiring the kernel to be CONFIG_SWAP=y
David Zeuthen [Thu, 27 Sep 2012 17:14:15 +0000 (13:14 -0400)]
Make it work without requiring the kernel to be CONFIG_SWAP=y

https://bugs.freedesktop.org/show_bug.cgi?id=50142

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDon't complain about missing /etc/fstab file
David Zeuthen [Thu, 27 Sep 2012 17:05:08 +0000 (13:05 -0400)]
Don't complain about missing /etc/fstab file

It's not inconceivable that this file is missing so don't loudly
complain about it.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDon't complain about missing /etc/crypttab file
David Zeuthen [Thu, 27 Sep 2012 17:00:57 +0000 (13:00 -0400)]
Don't complain about missing /etc/crypttab file

Some systems don't have it at all - notably F18 doesn't have if unless
you use encrypted root. Also make the file monitor pick up when the
file is deleted. This was reported in bug 53147:

 https://bugs.freedesktop.org/show_bug.cgi?id=53147

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoOnly do the isohybrid hack for the first partition
David Zeuthen [Wed, 26 Sep 2012 16:04:59 +0000 (12:04 -0400)]
Only do the isohybrid hack for the first partition

Otherwise we end up showing two partitions and that is unwanted. See

https://bugzilla.redhat.com/show_bug.cgi?id=860243

for details.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix same seat detection if built with systemd, but not booted with it
Vincent Untz [Tue, 25 Sep 2012 08:55:31 +0000 (10:55 +0200)]
Fix same seat detection if built with systemd, but not booted with it

If we haven't booted with systemd, then we can only assume it's always
the same seat.

Based on patch by Takashi Iwai <tiwai@suse.com>.

https://bugzilla.novell.com/show_bug.cgi?id=769570
https://bugs.freedesktop.org/show_bug.cgi?id=55309

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoConsistently refer to MD-RAID as "Linux RAID" in user-visible strings
David Zeuthen [Fri, 21 Sep 2012 15:53:16 +0000 (11:53 -0400)]
Consistently refer to MD-RAID as "Linux RAID" in user-visible strings

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoSet MDRaid:ChunkSize for raid0 but not for raid1
David Zeuthen [Thu, 20 Sep 2012 21:03:37 +0000 (17:03 -0400)]
Set MDRaid:ChunkSize for raid0 but not for raid1

It so happens that redundancy != striped - for example raid0 has the
former, but not the latter and raid1 is the other way around. And
raid4, raid5, raid6 and raid10 has both properties.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoNuke debug spew
David Zeuthen [Thu, 20 Sep 2012 17:23:28 +0000 (13:23 -0400)]
Nuke debug spew

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoHandle nested arrays
David Zeuthen [Thu, 20 Sep 2012 17:13:23 +0000 (13:13 -0400)]
Handle nested arrays

We actually need mdadm(8) changes for this to work properly otherwise
the MD_* properties end up overwriting each other.

We also have to be careful since a single GUdevDevice instance can be
in two distinct UDisksLinuxMDRaidObject.

http://people.freedesktop.org/~david/gnome-disks-mdraid-20120920-1.png

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoMention that MDRaid:SyncAction is the empty string for arrays w/o redundancy
David Zeuthen [Thu, 20 Sep 2012 17:12:43 +0000 (13:12 -0400)]
Mention that MDRaid:SyncAction is the empty string for arrays w/o redundancy

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoUDisksClient: include RAID level in description of RAID Array
David Zeuthen [Thu, 20 Sep 2012 17:11:13 +0000 (13:11 -0400)]
UDisksClient: include RAID level in description of RAID Array

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoSlightly rework UDisksObjectInfo docs
David Zeuthen [Thu, 20 Sep 2012 14:37:05 +0000 (10:37 -0400)]
Slightly rework UDisksObjectInfo docs

Also include the UDisksObject instance in the struct.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoSkip homehost when calcuating @name member in UDisksObjectInfo for MD-RAID
David Zeuthen [Wed, 19 Sep 2012 21:46:05 +0000 (17:46 -0400)]
Skip homehost when calcuating @name member in UDisksObjectInfo for MD-RAID

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoInitialize reference count to 1
David Zeuthen [Wed, 19 Sep 2012 21:44:15 +0000 (17:44 -0400)]
Initialize reference count to 1

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoDeprecate udisks_client_get_drive_info() with udisks_client_get_object_info()
David Zeuthen [Wed, 19 Sep 2012 21:37:18 +0000 (17:37 -0400)]
Deprecate udisks_client_get_drive_info() with udisks_client_get_object_info()

The new function is a bit more abstract, works on more types and
returns a UDisksObjectInfo object. This allows us to add information
in the future.

Also introduce symbolic icons as requested in bug

 https://bugs.freedesktop.org/show_bug.cgi?id=54503

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoRevert "Simplify codepath when removing a RAID disk"
David Zeuthen [Wed, 19 Sep 2012 17:59:00 +0000 (13:59 -0400)]
Revert "Simplify codepath when removing a RAID disk"

Doesn't seem to reliably work - probably an mdadm(8) bug. Revert for
now, make a note to investigate later.

This reverts commit fb3df672113a380f2d7555bf5dcac0814b4a0c80.