> What's the reason for device specials not to report their sizes?
Because the stat calls is done at the filesystem level, its not
passed to the device.
You should be able to determine after stat is a special device of
flavour X and then do the appropriate ioctl to get the disk size
(well, number of block).
You can also get goemotry information, although I'm not sure that
really makes sense with todays hard drives, as I don't think the
geometry is constant over the entire physical disk, rather it varies.
-cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/