On Tue, Oct 05, 2010 at 08:58:45AM -0400, Davidlohr Bueso wrote: > > We shouldn't forget that all such information are already gathered by > > udev and all this is accessible for non-root users, try: > > > > udevadm info --query=all --name=sda1 > > Some info is there, but some is available through devinfo (partitions, > model/name, permissions, etc.) There should be ID_PART_* variables with info about partitions in udev db. The idea is to use these variables for udisk (and remove UDISKS_PARTITION_* stuff). > > maybe it would be better to create a new command with human readable > > output for udev db rather than write all from scratch. > > Yep, will consider it. > > > > > $ devinfo -b > > > DEVICE MAJOR:MINOR > > > sr > > > ââsr0 11:0 > > > ramdisk > > > ââram0 1:0 > > > ââram1 1:1 > > > ââram10 1:10 > > > ââram11 1:11 > > > ââram12 1:12 > > > ... > > > > Nice, Milan Broz is working on a new command called "lsblk", the > > command will be able to print tree of block devices (with > > slaves/holders dependencies) -- something like "dmsetup ls --tree" > > but for all block devices and with more information. > > > Interesting, actually I started to write something very similar :-) > (actually called lsblk, but then extended it to what you see here). I think we can merge all to the one usable command. Now I'd like to wait for Milan. We will see. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html