David Zeuthen [Sun, 15 Mar 2009 20:23:38 +0000 (16:23 -0400)]
export all linux-md raid devices (except ones marked as 'clear')
This is to provide UI to remove 'inactive' devices when the kernel
gets the life-cycle management wrong. See upcoming commit in
gnome-disk-utility for handling this.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Sun, 15 Mar 2009 20:22:07 +0000 (16:22 -0400)]
add newline for debug message
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Sun, 15 Mar 2009 17:05:18 +0000 (13:05 -0400)]
only use a single PolicyKit action for Linux MD operations
David Zeuthen [Sun, 15 Mar 2009 17:04:47 +0000 (13:04 -0400)]
only export holders/slaves if the devices are in our db
This fixes a problem where the GVfs gdu volume monitor isn't updated if a LUKS device is unlocked from Palimpsest.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 4 Mar 2009 19:23:04 +0000 (14:23 -0500)]
add a --dump option to devkit-disks(1)
David Zeuthen [Wed, 4 Mar 2009 15:11:08 +0000 (10:11 -0500)]
allow users with appropriate authorizations to unmount all fstab mounts
David Zeuthen [Tue, 3 Mar 2009 21:20:08 +0000 (16:20 -0500)]
use dev_t to identify mounts, not device files
This should fix all issues with things like device-mapper using
non-canonical device file names (e.g. /dev/mapper/VolGroup00-LogVol00).
Also, this allows us to delete a bunch of special case code that
already tried to deal with this
See https://bugzilla.redhat.com/show_bug.cgi?id=488258 for details.
David Zeuthen [Mon, 2 Mar 2009 21:05:35 +0000 (16:05 -0500)]
update README
David Zeuthen [Mon, 2 Mar 2009 20:09:18 +0000 (15:09 -0500)]
bump version to 003
David Zeuthen [Mon, 2 Mar 2009 19:53:51 +0000 (14:53 -0500)]
update NEWS and TODO
David Zeuthen [Mon, 2 Mar 2009 19:39:30 +0000 (14:39 -0500)]
make it possible to inhibit all operations on the daemon
This is needed for things like OS installers to inhibit automounting
etc.
David Zeuthen [Mon, 2 Mar 2009 18:19:56 +0000 (13:19 -0500)]
make help description for devkit-disks(1) point to the man page
David Zeuthen [Mon, 2 Mar 2009 18:15:22 +0000 (13:15 -0500)]
revise devkit-disks(1) man page and allow spawning programs when inhibiting
David Zeuthen [Mon, 2 Mar 2009 17:26:44 +0000 (12:26 -0500)]
make the degree character work in devkit-disks
David Zeuthen [Mon, 2 Mar 2009 17:20:30 +0000 (12:20 -0500)]
make devkit-disks(1) print SMART attributes
David Zeuthen [Mon, 2 Mar 2009 16:12:53 +0000 (11:12 -0500)]
rip out --create-fs option for now
David Zeuthen [Mon, 2 Mar 2009 14:40:25 +0000 (09:40 -0500)]
when taking ownership of a newly created file system, set the mode to 0700
David Zeuthen [Mon, 2 Mar 2009 14:31:19 +0000 (09:31 -0500)]
use dmask 0077 by default when mounting vfat volumes
This is to make the contents readable only by the user mounting the
file system. This can be overridden by passing the dmask=XYZ option to
FilesystemMount() method.
David Zeuthen [Mon, 2 Mar 2009 14:11:42 +0000 (09:11 -0500)]
use the right polkit action for ejecting drives
David Zeuthen [Mon, 2 Mar 2009 01:28:36 +0000 (20:28 -0500)]
simplify PolicyKit permissions a bit
David Zeuthen [Sun, 1 Mar 2009 23:29:45 +0000 (18:29 -0500)]
set is_system_internal for linux md devices
David Zeuthen [Sun, 1 Mar 2009 19:54:36 +0000 (14:54 -0500)]
fixup error message when adding/removing components
David Zeuthen [Sun, 1 Mar 2009 19:52:49 +0000 (14:52 -0500)]
split MD_NAME into home host and name
David Zeuthen [Sun, 1 Mar 2009 15:47:46 +0000 (10:47 -0500)]
make Device.is_busy() and Davice.partitions_are_busy() methods private
David Zeuthen [Sun, 1 Mar 2009 15:43:45 +0000 (10:43 -0500)]
slightly rework how polling is done
David Zeuthen [Sat, 28 Feb 2009 15:56:03 +0000 (10:56 -0500)]
use G_GNUC_CONST for all _get_type() functions
David Zeuthen [Sat, 28 Feb 2009 15:53:24 +0000 (10:53 -0500)]
fix up _TYPE_ and _IS_ type macros to use DEVKIT_DISKS_ as the prefix
David Zeuthen [Sat, 28 Feb 2009 15:44:43 +0000 (10:44 -0500)]
rework mounts handling
David Zeuthen [Fri, 27 Feb 2009 21:22:23 +0000 (16:22 -0500)]
ensure that properties are updated before FilesystemMount returns
David Zeuthen [Thu, 26 Feb 2009 00:25:22 +0000 (19:25 -0500)]
add new device-presentation-name and -icon-name properties
Also read these from udev properties
DKD_PRESENTATION_NAME
DKD_PRESENTATION_ICON_NAME
and set ICON_NAME for the iPod we have listed there.
David Zeuthen [Wed, 25 Feb 2009 23:49:57 +0000 (18:49 -0500)]
rename part_id to devkit-disks-part-id and namespace udev properties
David Zeuthen [Wed, 25 Feb 2009 23:39:37 +0000 (18:39 -0500)]
fix parallel build
David Zeuthen [Wed, 25 Feb 2009 23:37:23 +0000 (18:37 -0500)]
add a devkit-disks-types.h file
David Zeuthen [Wed, 25 Feb 2009 23:11:31 +0000 (18:11 -0500)]
rework how properties are set and updated
This is major patch reworking property handling. Instead of clearing
properties at every update event we use setters functions
instead. This will allow us, in the future, to generate very precise
PropertiesChanged() signals that can be tracked by client-side
proxies.
Also clean up the update_info() function; it's now split into a number
of much simpler separate update_info_*() functions. Should make things
a lot easier to debug.
Also keep track of holders/slaves and update slaves/holders when added
to a device. This allows us to get ride of the racy
update_info_in_idle() crap that never really worked.
The following properties has been removed
- optical-disc-is-recordable
- optical-disc-is-rewritable
- linux-md-component-update-time
- linux-md-component-events
- linux-md-slaves-state
The following properties has been added
- linux-md-component-holder
- linux-md-component-state
- linux-md-state
David Zeuthen [Mon, 23 Feb 2009 16:45:26 +0000 (11:45 -0500)]
add some fixes/hacks to make things work with md incremental autoassembly
David Zeuthen [Mon, 23 Feb 2009 00:33:57 +0000 (19:33 -0500)]
set the process title in the poller to the devices currently being polled
root 18776 0.0 0.0 37960 760 pts/1 S+ 19:33 0:00 devkit-disks-daemon: polling /dev/sdc /dev/sdb
David Zeuthen [Mon, 23 Feb 2009 00:18:02 +0000 (19:18 -0500)]
make polling process exit when parent dies
David Zeuthen [Mon, 23 Feb 2009 00:00:40 +0000 (19:00 -0500)]
allow changing the label on a mounted device if the filesystem supports it
David Zeuthen [Sun, 22 Feb 2009 22:54:37 +0000 (17:54 -0500)]
detect USB floppy drives
David Zeuthen [Sun, 22 Feb 2009 21:54:51 +0000 (16:54 -0500)]
increase wipe size from 16KB to 128KB to erase btrfs signatures
David Zeuthen [Sun, 22 Feb 2009 21:13:28 +0000 (16:13 -0500)]
add support for ext4
David Zeuthen [Sun, 22 Feb 2009 16:12:34 +0000 (11:12 -0500)]
only report media type if media is actually available
David Zeuthen [Fri, 20 Feb 2009 23:12:39 +0000 (18:12 -0500)]
rework optical disc properties for audio discs
remove
optical-disc-has-audio
and add
optical-disc-num-audio-tracks
since this is in line with the information that /lib/udev/cdrom_id
gives us.
David Zeuthen [Fri, 20 Feb 2009 00:36:47 +0000 (19:36 -0500)]
poll for media, also add methods to inhibit polling and manual polling
For this to work well, the polling that happens in HAL needs to be
disabled. This can be achieved by this fdi file
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="storage.removable" bool="true">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
</device>
</deviceinfo>
There's also a TODO in the code to properly detect SATA AN drives and
avoid polling these.
David Zeuthen [Thu, 19 Feb 2009 17:59:44 +0000 (12:59 -0500)]
use the 'ro' sysfs file to figure out if media is read-only
This way we can avoid opening the device for writes. Because if we do
open the device for writes, we going to cause an endless loop of
'change' events with udev >= 138.
David Zeuthen [Wed, 18 Feb 2009 00:31:44 +0000 (19:31 -0500)]
init the SMART data GValue earlier
David Zeuthen [Wed, 18 Feb 2009 00:28:24 +0000 (19:28 -0500)]
don't crash if properties can't be retrieved
David Zeuthen [Tue, 17 Feb 2009 19:38:55 +0000 (14:38 -0500)]
use ID_VENDOR_ENC and ID_MODEL_ENC if they are available
The availability of these new keys depend on a patch just submitted to
udev.
David Zeuthen [Tue, 17 Feb 2009 18:02:55 +0000 (13:02 -0500)]
prefer ID_FS_LABEL_ENC, if available, to ID_FS_LABEL
David Zeuthen [Tue, 17 Feb 2009 17:23:26 +0000 (12:23 -0500)]
add linux-md-home-host and linux-md-component-home-host properties
David Zeuthen [Tue, 17 Feb 2009 01:51:38 +0000 (20:51 -0500)]
fix up race where components are not updated when a RAID array is stopped
David Zeuthen [Mon, 16 Feb 2009 01:12:50 +0000 (20:12 -0500)]
use -nonet for invoking xsltproc
David Zeuthen [Sun, 15 Feb 2009 18:37:47 +0000 (13:37 -0500)]
rework updates of slaves/holders
The previous patch to avoid cycles didn't really work; instead just
schedule holders/slaves in idle and make sure we sort out duplicates.
David Zeuthen [Sun, 15 Feb 2009 18:11:03 +0000 (13:11 -0500)]
export name+uuid for linux-md devices
David Zeuthen [Sun, 15 Feb 2009 06:00:18 +0000 (01:00 -0500)]
manually import linux-md data since mdadm upstream doesn't do this yet
David Zeuthen [Sun, 15 Feb 2009 05:45:36 +0000 (00:45 -0500)]
export properties about cryptotext LUKS devices
The properties are named luks-holder and device-is-luks.
Also make sure that all slaves and holders arrays are always up to
date (since the kernel still doesn't send 'change' events). To avoid
cycles, mark a device as being updated and clear all these flags in an
idle handler later.
David Zeuthen [Fri, 13 Feb 2009 18:00:02 +0000 (13:00 -0500)]
prefer ID_{MODEL|VENDOR} to what we can dig out of sysfs
Recent udev versions actually provide this.
David Zeuthen [Fri, 13 Feb 2009 16:11:54 +0000 (11:11 -0500)]
work around buggy /sbin/cryptsetup behavior
David Zeuthen [Fri, 13 Feb 2009 16:11:25 +0000 (11:11 -0500)]
do not crash if device disappears before we can get properties
Richard Hughes [Wed, 4 Feb 2009 10:07:19 +0000 (10:07 +0000)]
add some gitignore files to the source tree
Richard Hughes [Wed, 4 Feb 2009 10:00:21 +0000 (10:00 +0000)]
rename configure.in to configure.ac
Colin Walters [Fri, 12 Dec 2008 09:37:13 +0000 (09:37 +0000)]
fix DeviceKit-disks with the latest DBus release
David Zeuthen [Tue, 11 Nov 2008 13:18:45 +0000 (08:18 -0500)]
use right include path for devkit-gobject
David Zeuthen [Tue, 12 Aug 2008 16:33:52 +0000 (12:33 -0400)]
update location of git repos
Someone also needs to do s/devicekit/DeviceKit/ on the fd.o git servers...
David Zeuthen [Fri, 1 Aug 2008 19:46:42 +0000 (15:46 -0400)]
avoid closing the tray on optical drives
You're also going to need this patch to udev
http://marc.info/?l=linux-hotplug&m=
121749053301147&w=2
David Zeuthen [Mon, 21 Jul 2008 01:31:14 +0000 (21:31 -0400)]
update license so it's GPLv2
David Zeuthen [Mon, 21 Jul 2008 00:32:41 +0000 (20:32 -0400)]
fix 'make distcheck'
David Zeuthen [Mon, 21 Jul 2008 00:27:37 +0000 (20:27 -0400)]
fix marshaller changes
David Zeuthen [Fri, 18 Jul 2008 16:47:33 +0000 (12:47 -0400)]
include a private program to export the device-mapper information we need
Can't wait anymore for this to land in device-mapper upstream
https://bugzilla.redhat.com/show_bug.cgi?id=438604
We're using a separate name space for this so once this information
does land in device-mapper upstream we can use it from there.
David Zeuthen [Sun, 29 Jun 2008 01:05:27 +0000 (21:05 -0400)]
add some notes about how to support iSCSI target/initiator roles
David Zeuthen [Wed, 18 Jun 2008 15:00:01 +0000 (11:00 -0400)]
fix a bug introduced by commit
01f415b7e0049d71fbb221a43225d2ec7aa6404b
E.g. use the proper type boxed type for DBUS_G_TYPE_OBJECT_PATH for
the C closures when registering the signals
David Zeuthen [Wed, 18 Jun 2008 14:34:41 +0000 (10:34 -0400)]
register the correct marshaller for the devkit-disks client
David Zeuthen [Wed, 11 Jun 2008 15:37:37 +0000 (11:37 -0400)]
use object paths instead of strings for signals
Pointed out by Lennart Poettering via Jon McCann.
David Zeuthen [Wed, 11 Jun 2008 00:32:28 +0000 (20:32 -0400)]
don't S.M.A.R.T. data injected with simulate= to the database
David Zeuthen [Sun, 8 Jun 2008 01:15:32 +0000 (21:15 -0400)]
forgot to commit a few PolicyKit actions
David Zeuthen [Sun, 8 Jun 2008 01:05:03 +0000 (21:05 -0400)]
add a new method FilesystemListOpenFiles() returning (pid, uid, cmdline)
http://people.freedesktop.org/~david/gdu-fs-busy.png
David Zeuthen [Sat, 7 Jun 2008 03:39:48 +0000 (23:39 -0400)]
add DriveEject() and drive-is-media-ejectable, drive-requires-eject properties
David Zeuthen [Sat, 7 Jun 2008 01:33:31 +0000 (21:33 -0400)]
removed the .NotLabeled error, just return .Failed instead
David Zeuthen [Sat, 7 Jun 2008 01:17:04 +0000 (21:17 -0400)]
add support for optical discs and rework media type handling
In particular, use the data exported by the newly rewritten cdrom_id
program; reported a few bugs to Kay about that one.
David Zeuthen [Fri, 6 Jun 2008 22:12:22 +0000 (18:12 -0400)]
update devkit-disks to latest D-Bus API
David Zeuthen [Fri, 6 Jun 2008 01:24:47 +0000 (21:24 -0400)]
allow unmount/locking devices not set up by the daemon
Will require plenty of privilege (e.g. unmount-others and lock-others).
David Zeuthen [Fri, 6 Jun 2008 01:15:17 +0000 (21:15 -0400)]
reword some authentication messages and change some of the defaults
David Zeuthen [Fri, 6 Jun 2008 01:08:25 +0000 (21:08 -0400)]
rename some PolicyKit actions to be more consistent with the API
David Zeuthen [Thu, 5 Jun 2008 22:02:34 +0000 (18:02 -0400)]
use mlabel if label passed to mkfs.vfat is > 11 characters
David Zeuthen [Thu, 5 Jun 2008 21:43:06 +0000 (17:43 -0400)]
set an environment variable to skip checks
Kay Sievers reports these checks are broken. Either way, no need to
check the fstype since we already check the fstype from vol_id.
David Zeuthen [Thu, 5 Jun 2008 21:38:18 +0000 (17:38 -0400)]
use mlabel rather than dosfslabel
Because compared to dosfslabel
- mlabel actually works
- mlabel supports long labels (254 characters)
- mlabel is also available in e.g. SUSE; dosfslabel seem to be a RH hack
David Zeuthen [Thu, 5 Jun 2008 21:22:36 +0000 (17:22 -0400)]
revert "rename FilesystemSetLabel to SetLabel; some non-fs devices supports labels too"
This reverts commit
f7ad692c880c44dd9d52844f9963e08e24ec92cf.
Hmm.. thinking about it, it's probably better to have SwapSetLabel(),
LinuxMdSetLabel() and so forth.
David Zeuthen [Thu, 5 Jun 2008 20:42:04 +0000 (16:42 -0400)]
rename FilesystemSetLabel to SetLabel; some non-fs devices supports labels too
David Zeuthen [Thu, 5 Jun 2008 18:43:17 +0000 (14:43 -0400)]
sanitize/rework D-Bus errors returned
David Zeuthen [Thu, 5 Jun 2008 05:20:09 +0000 (01:20 -0400)]
avoid abstracting encrypted devices; instead be specific about it's LUKS
David Zeuthen [Thu, 5 Jun 2008 04:27:04 +0000 (00:27 -0400)]
add support for the xfs file system
David Zeuthen [Wed, 4 Jun 2008 03:40:42 +0000 (23:40 -0400)]
export daemon version and capabilities (encryption and fs support)
David Zeuthen [Tue, 3 Jun 2008 00:08:46 +0000 (20:08 -0400)]
add a new method FilesystemCheck
David Zeuthen [Mon, 2 Jun 2008 16:41:47 +0000 (12:41 -0400)]
include permissions and errors in the docs for the LinuxMdStart method
David Zeuthen [Mon, 2 Jun 2008 15:26:04 +0000 (11:26 -0400)]
rework what authorizations are needed
Lots of changes in this commit including new properties and ABI changes.
David Zeuthen [Sun, 1 Jun 2008 20:31:53 +0000 (16:31 -0400)]
add new property device-is-system-internal
David Zeuthen [Sun, 1 Jun 2008 20:07:33 +0000 (16:07 -0400)]
remove ability to use privileged mount options
People who wants this are advised to use /etc/fstab - as of commit
1aeeb7b6ec2236f20eef2281e30786266098e29e, FilesystemMount() and
FilesystemUnmount() will attempt to mount as the calling user if the
device is referenced in /etc/fstab.
David Zeuthen [Sun, 1 Jun 2008 19:42:07 +0000 (15:42 -0400)]
add options take_ownership_[uid|gid] to FilesystemCreate
This is to support features such as
http://people.freedesktop.org/~david/gdu-take-ownership.png
We might want to add take_ownership_secontext for setting the SELinux
context too. Need to check with the SELinux guys.
David Zeuthen [Sun, 1 Jun 2008 15:18:16 +0000 (11:18 -0400)]
add a --replace option to devkit-disks-daemon
This will replace an existing instance of devkit-disks-daemon.
David Zeuthen [Sat, 31 May 2008 18:38:19 +0000 (14:38 -0400)]
ensure that EncryptedLock doesn't return until cleartext device is removed