lkml.org 
[lkml]   [1999]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: lseek("/dev/hda1", 0, SEEK_END) returns 0
On Mon, 18 Jan 1999, Jeff Noxon wrote:
> I'd suggest using /proc/partitions to find the data you want. But
> then again, that returns the length in blocks, and not all devices
> are 512b/block.

the BLKGETSIZE ioctl returns sector size of block devices (ie,
/dev/sda1). but don't sector sizes vary as well? there doesn't seem to
be an ioctl to get sector size, unfortunately.

--
Tom Vier - 0x82B007A8
thomassr@erols.com | goto the Zero Page at:
Tortured Souls Software | http://www.erols.com/thomassr/zero/


-
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:49    [W:0.098 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site