From Fedora Project Wiki

DeviceKit

Summary

DeviceKit is a simple system service that a) can enumerate devices; b) emits signals when devices are added removed; c) provides a way to merge device information / quirks onto devices. It is designed to partially replace hal and overcome some of the design limitiations of hal.

Apart from DeviceKit itself, there is DeviceKit-disks, which is a system service to keep track of block devices, and gnome-disk-utility, which is a graphical frontend for DeviceKit-disks.

Furthermore, there will be a nautilus extension to format disks.

Owner

  • Name: DavidZeuthen

Current status

  • Targeted release: Fedora 10
  • Last updated: 2008-07-10
  • Percentage of completion: 50%

DeviceKit is still not in rawhide, since there are still some device-mapper prerequisites missing. The current goal is to have it in rawhide by F10 alpha.

Detailed Description

David has written an extensive explanation of the DeviceKit architecture, and the motivation for rewriting hal. Read all about it here

There is a dedicated devkit-devel mailing list now.

Benefit to Fedora

Fedora gains a comprehensive graphical disk management tool which provides functionality that so far was almost exclusively available in the partitioning screen of anaconda. The tools integrate nicely into the desktop (by e.g. providing a "Format disk..." menuitem in the nautilus context menu where appropriate).

Scope

DeviceKit depends on bug fixes and enhancements in unreleased versions of a number of components, such as kernel, udev, mdadm, lvm. These will have to appear in rawhide first. Also, in order to peacefully coexist with DeviceKit-disks, hal will need to undergo disk-ectomy. Components which depend directly on the disk functionality in hal, such as gvfs and Solid, have to be ported to DeviceKit-disks.

Test Plan

  1. Use gnome-disk-utility to create, modify and delete partitions and file systems on various media, such as usb sticks, cds, removable hard disks, etc.
  2. Use gnome-disk-utility to encrypt partitions and to change passwords for existing encrypted partitions.
  3. Verify that gnome-disk-utility correctly reports smart data from disks which support it.
  4. Test the raid support
  5. Test the lvm support
  6. Test that desktop applications like nautilus and the gedit (file chooser) see volumes and mounts

User Experience

There is a new menu item that brings up gnome-disc-utility.

The nautilus context menu offers to format discs/usb sticks and other devices.

gnome-disc-utility is a graphical interface for all disc-related tasks, from partitioning and file system creation to encryption, raid and lvm.

Dependencies

hal needs to be built without disc support.

gvfs needs to be built against DeviceKit-disks, and the volume monitor in gvfs must be moved out of process to make it a singleton.

Solid's (KDE's) disk management also needs to be ported to DeviceKit-disks.

Contingency Plan

Don't add the new packages to F10, undo the hal-disk-ectomy, rebuild gvfs against hal instead of DeviceKit-disks.

Documentation

API docs are here: http://hal.freedesktop.org/docs/DeviceKit/

Release Notes

Should not be necessary.

It might be a good idea to mention the encryption support where the release notes talk about encryption.