[Kde-hardware-devel] Re: udisks ignores blank media by default?

Lukáš Tinkl ltinkl at redhat.com
Sun Jan 2 18:12:05 CET 2011


Dne Pá 31. prosince 2010 00:08:36 Jacopo De Simoi napsal(a):
> After some investigation I found out that the issue is given by the
> following check in isDeviceBlacklisted():
> 
> 
>     return property("DevicePresentationHide").toBool() ||
> property("DevicePresentationNopolicy").toBool() ||
> property("DeviceMountPaths").toStringList().contains("/boot") ||
> property("IdLabel").toString() == "System Reserved" ||
> property("IdUsage").toString().isEmpty();
> 
> Apparently IdUsage is empty for a blank cd, so this blacklisting rule is a
> bit too strict.
> 
> > Does udisks ignore blank media by default or is it some crazy rule set by
> > my distro?
> > 
> > solid-hardware list details
> > 
> > udi = '/org/freedesktop/UDisks/devices/sr0:media'
> > 
> >   parent = '/org/freedesktop/UDisks/devices/sr0'  (string)
> >   vendor = 'Slimtype'  (string)
> >   product = 'DVD A  DS8A1H'  (string)
> >   description = 'Blank DVD+R'  (string)
> >   Block.major = 11  (0xb)  (int)
> >   Block.minor = 0  (0x0)  (int)
> >   Block.device = '/dev/sr0'  (string)
> >   StorageVolume.ignored = true  (bool)
> >   StorageVolume.usage = 'Other'  (0x0)  (enum)
> >   StorageVolume.fsType = ''  (string)
> >   StorageVolume.label = 'Slimtype DVD A  DS8A1H'  (string)
> >   StorageVolume.uuid = ''  (string)
> >   StorageVolume.size = 2048  (0x800)  (qulonglong)
> >   OpticalDisc.availableContent = 'NoContent'  (0x0)  (flag)
> >   OpticalDisc.discType = 'DvdPlusRecordable'  (0x7)  (enum)
> >   OpticalDisc.appendable = false  (bool)
> >   OpticalDisc.blank = true  (bool)
> >   OpticalDisc.rewritable = false  (bool)
> >   OpticalDisc.capacity = 2048  (0x800)  (qulonglong)
> > 
> > This clearly does not allow actions installed by k3b to work, and breaks
> > the notifier in this respect… Lukas, any ideas?
> > 
> >  Thanks
> > 
> > __J

I'll look into it tomorrow 

-- 
Lukáš Tinkl <ltinkl at redhat.com>
Software Engineer - Base Operating Systems Brno
KDE developer <lukas at kde.org>
Red Hat Inc.                               http://cz.redhat.com


More information about the Kde-hardware-devel mailing list