2011/1/8 Josà FÃlix OntaÃÃn <felixonta@xxxxxxxxx>: > I wonder... are there any reasons for not being convenient to export > some properties refering the volume size of a disk device? > Although I'm concerned about the > don't-turning-udev-into-a-hal-like-system, I still perceiving the > volume.size or volume.block_size properties as very useful for user > space apps. > > On the one hand, it could be easy for user space apps to get the > size/blocks for partition devices, $ grep . /sys/class/block/*/size /sys/class/block/sda1/size:41943040 /sys/class/block/sda2/size:41943040 /sys/class/block/sda3/size:115343360 /sys/class/block/sda4/size:50835456 /sys/class/block/sda/size:250069680 /sys/class/block/sr0/size:2097151 > but on the other hand you need root > privs to get this info for disk devices, am i wrong? Everybody can do that. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html