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



-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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2011 Jasper Spaans