[lkml]   [1998]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: /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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:45    [W:0.048 / U:2.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site