in reply to Re^4: get the size of a special device (drive)
in thread get the size of a special device (drive)

True enough, but I still can't seem to find any docs on /sys/block/*/size.

A simple grep -ri sys .|grep -i size (in the /usr/src/linux/Documentation dir) doesn't seem to turn up anything useful.

update: Also, the /sys/bock/*/size entries seem to refer to full drive sizes. There's nothing in there referring to partitions. That might or might not be interesting to the OP.

Replies are listed 'Best First'.
Re^6: get the size of a special device (drive)
by blazar (Canon) on May 31, 2007 at 07:58 UTC
    True enough, but I still can't seem to find any docs on /sys/block/*/size.

    Well, this is obviously hitting the limits of PerlMonks: there's no reason why some monks here may not also be Linux experts, but I'm sure one would have more luck asking in some specific forum, ng or ml.

    Also, the /sys/bock/*/size entries seem to refer to full drive sizes. There's nothing in there referring to partitions. That might or might not be interesting to the OP.

    This doesn't appear to be the case in at least a system I'm trying: