Change some D-Bus types from bytestring ('ay') to UTF8 ('s')
authorDavid Zeuthen <davidz@redhat.com>
Tue, 13 Mar 2012 21:29:55 +0000 (17:29 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 13 Mar 2012 21:29:55 +0000 (17:29 -0400)
commit5c622a9b20e8f874d90480e4168dbc9129696603
tree410596de25fc7ecfd43f5cc7b9e4da2f80eb98e1
parentb81d528363761ae93e5b8ada724bc8199ece28b5
Change some D-Bus types from bytestring ('ay') to UTF8 ('s')

We are 100% sure that the changed items are always UTF-8 especially
because udisks_device_udev_string() guarantees this and this function
is used before setting the affected properties.

This breaks the D-Bus API but there is no change in the libudisks2.so
ABI since byte-strings and UTF-8 strings are mapped the same way when
GDBus is being used. It may require restarting the system, but apart
from that there is minimal interference from this change.

The remaining byte-strings in the API are things that either comes
from configuration files (such as /etc/fstab and /etc/crypttab), the
kernel (e.g. sysfs paths) or udev rules (e.g. device symlinks). We
could require UTF-8 here and just reject items that are not valid
UTF-8 but there's really no point in that.

Signed-off-by: David Zeuthen <davidz@redhat.com>
data/org.freedesktop.UDisks2.xml