[Kde-hardware-devel] Re: udisks ignores blank media by default?
Jacopo De Simoi
wilderkde at gmail.com
Fri Dec 31 00:08:36 CET 2010
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
> _______________________________________________
> Kde-hardware-devel mailing list
> Kde-hardware-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-hardware-devel
>
More information about the Kde-hardware-devel
mailing list