remove a lot of unnecessary errors
authorDavid Zeuthen <davidz@redhat.com>
Thu, 2 Apr 2009 19:37:43 +0000 (15:37 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 2 Apr 2009 19:37:43 +0000 (15:37 -0400)
commitbe03d6caf5fc30ceb8b7aba64ec5268d12e690ed
tree2648c490ab2c439b46dcfe466684fc068ed5efaf
parente1e9f821a896065262581535e0131870a8e78abf
remove a lot of unnecessary errors

For example it doesn't make sense to return this error

 org.freedesktop.DeviceKit.Disks.Error.NotPartition

since the client is already able to check in advance if the given
object really is a partition. So trim the error list to only contain
errors that the client can't predict. This leaves us with

 DEVKIT_DISKS_ERROR_FAILED,
 DEVKIT_DISKS_ERROR_BUSY,
 DEVKIT_DISKS_ERROR_CANCELLED,
 DEVKIT_DISKS_ERROR_INHIBITED,
 DEVKIT_DISKS_ERROR_INVALID_OPTION,
 DEVKIT_DISKS_ERROR_NOT_SUPPORTED,
 DEVKIT_DISKS_ERROR_ATA_SMART_WOULD_WAKEUP,
src/devkit-disks-daemon.c
src/devkit-disks-daemon.h
src/devkit-disks-device.c
src/org.freedesktop.DeviceKit.Disks.Device.xml
src/org.freedesktop.DeviceKit.Disks.xml