use the 'ro' sysfs file to figure out if media is read-only
authorDavid Zeuthen <davidz@redhat.com>
Thu, 19 Feb 2009 17:59:44 +0000 (12:59 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 19 Feb 2009 17:59:44 +0000 (12:59 -0500)
commitc12836915e0226adc1ac8597363069aaadfb4ac9
tree4dfa5e7a2991c817e679cc3c42bf822ac283d09f
parent28e0672cedd6318d3a4fdc2bbd77a82444ea5e6a
use the 'ro' sysfs file to figure out if media is read-only

This way we can avoid opening the device for writes. Because if we do
open the device for writes, we going to cause an endless loop of
'change' events with udev >= 138.
src/devkit-disks-device.c