Messages in this thread | | | Date | Sat, 28 Nov 1998 15:30:09 +1300 | From | Chris Wedgwood <> | Subject | Re: /dev/winchester reporting their size |
| |
On Fri, Nov 27, 1998 at 06:18:02PM +0100, Johnny Tevessen wrote:
> 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/
| |